]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-recover-return-sign2.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / fn / fn-recover-return-sign2.stderr
1 error: return types are denoted using `->`
2   --> $DIR/fn-recover-return-sign2.rs:4:10
3    |
4 LL | fn foo() => impl Fn() => bool {
5    |          ^^ help: use `->` instead
6
7 error: expected one of `+`, `->`, `::`, `where`, or `{`, found `=>`
8   --> $DIR/fn-recover-return-sign2.rs:4:23
9    |
10 LL | fn foo() => impl Fn() => bool {
11    |                       ^^ expected one of `+`, `->`, `::`, `where`, or `{`
12
13 error: aborting due to 2 previous errors
14