summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/unused-macro-use.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/unused-macro-use.rs')
-rw-r--r--tests/ui/imports/unused-macro-use.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/imports/unused-macro-use.rs b/tests/ui/imports/unused-macro-use.rs
new file mode 100644
index 000000000..9f63eb4b4
--- /dev/null
+++ b/tests/ui/imports/unused-macro-use.rs
@@ -0,0 +1,11 @@
+#![deny(unused)]
+
+#[macro_use] //~ ERROR unused `#[macro_use]` import
+extern crate core;
+
+#[macro_use(
+ panic //~ ERROR unused `#[macro_use]` import
+)]
+extern crate core as core_2;
+
+fn main() {}