summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro-use-all-and-none.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/macros/macro-use-all-and-none.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-use-all-and-none.rs b/src/test/ui/macros/macro-use-all-and-none.rs
new file mode 100644
index 000000000..c8bd44008
--- /dev/null
+++ b/src/test/ui/macros/macro-use-all-and-none.rs
@@ -0,0 +1,13 @@
+// run-pass
+// aux-build:two_macros-rpass.rs
+
+#![warn(unused_attributes)]
+
+#[macro_use]
+#[macro_use()] //~ WARNING unused attribute
+extern crate two_macros_rpass;
+
+pub fn main() {
+ macro_one!();
+ macro_two!();
+}