rust/tests/ui/parser/closure-return-syntax.stderr
2023-01-11 09:32:08 +00:00

14 lines
314 B
Plaintext

error: expected `{`, found `22`
--> $DIR/closure-return-syntax.rs:5:23
|
LL | let x = || -> i32 22;
| ^^ expected `{`
|
help: try placing this code inside a block
|
LL | let x = || -> i32 { 22 };
| + +
error: aborting due to previous error