rust/tests/ui/parser/issues/issue-49040.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
551 B
Plaintext

error: expected item, found `;`
--> $DIR/issue-49040.rs:1:28
|
LL | #![allow(unused_variables)];
| ^
|
help: remove this semicolon
|
LL - #![allow(unused_variables)];
LL + #![allow(unused_variables)]
|
error[E0601]: `main` function not found in crate `issue_49040`
--> $DIR/issue-49040.rs:2:12
|
LL | fn foo() {}
| ^ consider adding a `main` function to `$DIR/issue-49040.rs`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0601`.