blob: 3d16a2067ccae7f882f8549df17a85cace19017f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|