-
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 lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
Yes the following code is pointless, but I needed any attribute to reproduce, so I chose a derive
#![feature(stmt_expr_attributes)]
fn main() {
let x = #[derive(Foo)](5 + 6);
}
produces
warning: unnecessary parentheses around assigned value
--> src/main.rs:4:27
|
4 | let x = #[derive(Foo)](5 + 6);
| ^^^^^^^
|
= note: #[warn(unused_parens)] on by default
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.