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