]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/closure-return-syntax.stderr
Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup
[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    |                       ^^ 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