Open
Description
fn main() {
let x = vec![((8))];
println!("Hello, world!, {:?}",x);
}
and
fn main() {
println!("Hello, world!, {:?}", ((8)));
}
do not have any warnings while
fn main() {
let x = ((8));
println!("Hello, world!, {:?}",x);
}
emits unused_parens
.
I expect the first two snippets to also cause this warning.
note: is there a way to add labels to an issue without being a member?
Metadata
Metadata
Assignees
Labels
Area: Lints (warnings about flaws in source code) such as unused_mut.Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Category: This is a bug.Lint: False negative (should have fired but didn't).Lint: unused_parensRelevant to the compiler team, which will review and decide on the PR/issue.