692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
47 lines
1002 B
Plaintext
47 lines
1002 B
Plaintext
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:3:8
|
|
|
|
|
LL | fn a() => usize { 0 }
|
|
| ^^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL | fn a() -> usize { 0 }
|
|
| ~~
|
|
|
|
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:6:7
|
|
|
|
|
LL | fn b(): usize { 0 }
|
|
| ^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL | fn b() -> usize { 0 }
|
|
| ~~
|
|
|
|
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:21:25
|
|
|
|
|
LL | let foo = |a: bool| => bool { a };
|
|
| ^^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL | let foo = |a: bool| -> bool { a };
|
|
| ~~
|
|
|
|
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:25:24
|
|
|
|
|
LL | let bar = |a: bool|: bool { a };
|
|
| ^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL | let bar = |a: bool| -> bool { a };
|
|
| ~~
|
|
|
|
error: aborting due to 4 previous errors
|
|
|