]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/closure-return-syntax.stderr
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / 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    |                       ^^
6    |                       |
7    |                       expected `{`
8    |                       help: try placing this code inside a block: `{ 22 }`
9
10 error: aborting due to previous error
11