-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
impl A for B;
gives this error:
test.rs:1:12: 1:13 error: obsolete syntax: empty implementation
test.rs:1 impl A for B;
^
note: instead of `impl A;`, write `impl A {}`
error: aborting due to previous error
The note is talking about a different construct. It could use a more generic language to refer to trait implementations and non-trait implementations. I also question handling this via the obsolete syntax pathway, as it seems to leak historical details that are not too relevant for a Rust user.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints