Implement asymmetrical precedence for closures and jumps

This commit is contained in:
David Tolnay 2024-12-22 09:27:52 -08:00
parent 1bea580f36
commit 6cca4ca82b
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
7 changed files with 150 additions and 75 deletions

View file

@ -26,7 +26,7 @@ pub fn main() {
_ => {}
};
(4 as usize).match { _ => {} };
(return).match { _ => {} };
return.match { _ => {} };
(a = 42).match { _ => {} };
(|| {}).match { _ => {} };
(42..101).match { _ => {} };