Closed
Description
#![feature(stmt_expr_attributes)]
fn main() {
#[allow(unused_variables)]
let mut foo = 7;
#[allow(unused_assignments)]
foo = 42;
}
<anon>:5:9: 5:16 warning: variable `foo` is assigned to, but never used, #[warn(unused_variables)] on by default
<anon>:5 let mut foo = 7;
^~~~~~~
<anon>:7:5: 7:8 warning: value assigned to `foo` is never read, #[warn(unused_assignments)] on by default
<anon>:7 foo = 42;
^~~
I would expect to see no warnings.