rust/tests/ui/parser/removed-syntax/removed-syntax-fn-sigil.stderr
Esteban Küber 692bc344d5 Make parse error suggestions verbose and fix spans
Go over all structured parser suggestions and make them verbose style.

When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
2024-07-12 03:02:57 +00:00

22 lines
530 B
Plaintext

error: missing parameters for function definition
--> $DIR/removed-syntax-fn-sigil.rs:2:14
|
LL | let x: fn~() = || ();
| ^
|
help: add a parameter list
|
LL | let x: fn()~() = || ();
| ++
error: expected one of `->`, `;`, or `=`, found `~`
--> $DIR/removed-syntax-fn-sigil.rs:2:14
|
LL | let x: fn~() = || ();
| - ^ expected one of `->`, `;`, or `=`
| |
| while parsing the type for `x`
error: aborting due to 2 previous errors