Closed
Description
I tried this code:
pub struct Foo {
bar: u32,
baz: u32,
}
pub fn test(foo: Foo) {
let Foo {
#[allow(unused_variables)]
bar,
#[allow(unused_variables)]
baz,
} = foo;
}
I expected to see this happen:
no lint
Instead, this happened:
unused_variables lint occurs even though it is allowed
Meta
rustc version 1.85.0