summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/macro-use-warned-against.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2018/macro-use-warned-against.stderr')
-rw-r--r--tests/ui/rust-2018/macro-use-warned-against.stderr27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/macro-use-warned-against.stderr b/tests/ui/rust-2018/macro-use-warned-against.stderr
new file mode 100644
index 000000000..6b46f002e
--- /dev/null
+++ b/tests/ui/rust-2018/macro-use-warned-against.stderr
@@ -0,0 +1,27 @@
+warning: deprecated `#[macro_use]` attribute used to import macros should be replaced at use sites with a `use` item to import the macro instead
+ --> $DIR/macro-use-warned-against.rs:7:1
+ |
+LL | #[macro_use]
+ | ^^^^^^^^^^^^
+ |
+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
+