-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Given the following code: link
struct Num {
a: i32;
}
fn main() {
}
The current output is:
Compiling playground v0.0.1 (/playground)
error: expected `,`, or `}`, found `;`
--> src/main.rs:2:11
|
2 | a: i32;
| ^
error: could not compile `playground` due to previous error
Ideally the output should suggest replacing the ;
with ,
since a suggestion already exist for an incorrect semicolon usage at the end of the struct declaration (after the closing brace).
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.