2020-10-15 14:21:45 -05:00
|
|
|
error: return types are denoted using `->`
|
|
|
|
--> $DIR/fn-recover-return-sign2.rs:4:10
|
|
|
|
|
|
|
|
|
LL | fn foo() => impl Fn() => bool {
|
|
|
|
| ^^ help: use `->` instead
|
|
|
|
|
2021-12-04 12:05:30 -06:00
|
|
|
error: expected one of `+`, `->`, `::`, `where`, or `{`, found `=>`
|
2020-10-15 14:21:45 -05:00
|
|
|
--> $DIR/fn-recover-return-sign2.rs:4:23
|
|
|
|
|
|
|
|
|
LL | fn foo() => impl Fn() => bool {
|
2021-12-04 12:05:30 -06:00
|
|
|
| ^^ expected one of `+`, `->`, `::`, `where`, or `{`
|
2020-10-15 14:21:45 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|