Closed
Description
The current nightly version (rustc 1.21.0-nightly (df511d5 2017-08-14)) warns about an unused variable, even if it's flagged with allow(). The stable version doesn't do so.
fn main() {
#[allow(unused_variables)] let x = 12;
let y = 11;
}
warning: unused variable: `x`
--> src/main.rs:2:36
|
2 | #[allow(unused_variables)] let x = 12;
| ^
|
= note: #[warn(unused_variables)] on by default
https://play.rust-lang.org/?gist=9b81da266dd1f4383760de35d94f7ff6&version=nightly