Closed
Description
#![allow(unused_variables)]; // note: a tailing semicolon here
fn main() {}
Stable & Nightly compiler error:
warning: this inner attribute syntax is deprecated. The new syntax is `#![foo]`, with a bang and no semicolon
--> src/main.rs:1:1
|
1 | #![allow(unused_variables)];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
I think I already use the "new syntax", except adding one more semicolon.
The compiler could simply suggest me removing the redundant semicolon.