]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/closure-return-syntax.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / closure-return-syntax.stderr
1 error: expected `{`, found `22`
2   --> $DIR/closure-return-syntax.rs:5:23
3    |
4 LL |     let x = || -> i32 22;
5    |                       ^^ expected `{`
6    |
7 help: try placing this code inside a block
8    |
9 LL |     let x = || -> i32 { 22 };
10    |                       +    +
11
12 error: aborting due to previous error
13