]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/closure-return-syntax.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / closure-return-syntax.stderr
1 error: expected one of `!`, `(`, `+`, `::`, `<`, or `{`, found `22`
2   --> $DIR/closure-return-syntax.rs:5:23
3    |
4 LL |     let x = || -> i32 22;
5    |                       ^^ expected one of `!`, `(`, `+`, `::`, `<`, or `{`
6
7 error: aborting due to previous error
8