Add test of closure vs jump precedence
This commit is contained in:
parent
42b4b9c669
commit
f3ac64ac34
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ static EXPRS: &[&str] = &[
|
|||
// These mean different things.
|
||||
"return - 2",
|
||||
"(return) - 2",
|
||||
// Closures and jumps have equal precedence.
|
||||
"|| return break 2",
|
||||
"return break (|| 2)", // FIXME: no parenthesis needed.
|
||||
// These mean different things.
|
||||
"if let _ = true && false {}",
|
||||
"if let _ = (true && false) {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue