rust/tests/ui/rust-2018/macro-use-warned-against.st...

29 lines
821 B
Plaintext

warning: applying the `#[macro_use]` attribute to an `extern crate` item is deprecated
--> $DIR/macro-use-warned-against.rs:7:1
|
LL | #[macro_use]
| ^^^^^^^^^^^^
|
= help: remove it and import macros at use sites with a `use` item instead
note: the lint level is defined here
--> $DIR/macro-use-warned-against.rs:5:9
|
LL | #![warn(macro_use_extern_crate, unused)]
| ^^^^^^^^^^^^^^^^^^^^^^
warning: unused `#[macro_use]` import
--> $DIR/macro-use-warned-against.rs:9:1
|
LL | #[macro_use]
| ^^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/macro-use-warned-against.rs:5:33
|
LL | #![warn(macro_use_extern_crate, unused)]
| ^^^^^^
= note: `#[warn(unused_imports)]` implied by `#[warn(unused)]`
warning: 2 warnings emitted