2020-10-15 14:21:45 -05:00
|
|
|
error: return types are denoted using `->`
|
|
|
|
--> $DIR/fn-recover-return-sign.rs:3:8
|
|
|
|
|
|
|
|
|
LL | fn a() => usize { 0 }
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
|
|
|
|
LL | fn a() -> usize { 0 }
|
|
|
|
| ~~
|
2020-10-15 14:21:45 -05:00
|
|
|
|
|
|
|
error: return types are denoted using `->`
|
|
|
|
--> $DIR/fn-recover-return-sign.rs:6:7
|
|
|
|
|
|
|
|
|
LL | fn b(): usize { 0 }
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
|
|
|
|
LL | fn b() -> usize { 0 }
|
|
|
|
| ~~
|
2020-10-15 14:21:45 -05:00
|
|
|
|
|
|
|
error: return types are denoted using `->`
|
|
|
|
--> $DIR/fn-recover-return-sign.rs:21:25
|
|
|
|
|
|
|
|
|
LL | let foo = |a: bool| => bool { a };
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
|
|
|
|
LL | let foo = |a: bool| -> bool { a };
|
|
|
|
| ~~
|
2020-10-15 14:21:45 -05:00
|
|
|
|
|
|
|
error: return types are denoted using `->`
|
|
|
|
--> $DIR/fn-recover-return-sign.rs:25:24
|
|
|
|
|
|
|
|
|
LL | let bar = |a: bool|: bool { a };
|
2024-07-05 22:07:46 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
|
|
|
|
LL | let bar = |a: bool| -> bool { a };
|
|
|
|
| ~~
|
2020-10-15 14:21:45 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|