1
Fork 0
rust/tests/ui/parser/closure-return-syntax.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
333 B
Text
Raw Normal View History

error: expected `{`, found `22`
--> $DIR/closure-return-syntax.rs:5:23
2018-10-20 23:36:17 +03:00
|
LL | let x = || -> i32 22;
| ^^ expected `{`
|
2024-11-16 00:22:54 +00:00
help: you might have meant to write this as part of a block
|
LL | let x = || -> i32 { 22 };
| + +
2018-10-20 23:36:17 +03:00
error: aborting due to 1 previous error
2018-10-20 23:36:17 +03:00