]> git.lizzy.rs Git - rust.git/blob - tests/ui/rust-2018/macro-use-warned-against.stderr
Rollup merge of #103418 - Aaron1011:macro-semicolon-future-incompat, r=davidtwco
[rust.git] / tests / ui / rust-2018 / macro-use-warned-against.stderr
1 warning: deprecated `#[macro_use]` attribute used to import macros should be replaced at use sites with a `use` item to import the macro instead
2   --> $DIR/macro-use-warned-against.rs:7:1
3    |
4 LL | #[macro_use]
5    | ^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/macro-use-warned-against.rs:5:9
9    |
10 LL | #![warn(macro_use_extern_crate, unused)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^
12
13 warning: unused `#[macro_use]` import
14   --> $DIR/macro-use-warned-against.rs:9:1
15    |
16 LL | #[macro_use]
17    | ^^^^^^^^^^^^
18    |
19 note: the lint level is defined here
20   --> $DIR/macro-use-warned-against.rs:5:33
21    |
22 LL | #![warn(macro_use_extern_crate, unused)]
23    |                                 ^^^^^^
24    = note: `#[warn(unused_imports)]` implied by `#[warn(unused)]`
25
26 warning: 2 warnings emitted
27