-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary code
Description
I suggest to give some kind of warning or hint to remove the double ;; here:
fn main() {
println!("hello");;
}
The D language is different from Rust so the situation isn't directly comparable, but in a case like this gives a warning like this:
temp.d(2,22): Warning: use '{ }' for an empty statement, not a ';'
oxalica
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary code