summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-use-wrong-name.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/macro-use-wrong-name.rs')
-rw-r--r--tests/ui/macros/macro-use-wrong-name.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-use-wrong-name.rs b/tests/ui/macros/macro-use-wrong-name.rs
new file mode 100644
index 000000000..d142b5800
--- /dev/null
+++ b/tests/ui/macros/macro-use-wrong-name.rs
@@ -0,0 +1,9 @@
+// aux-build:two_macros.rs
+
+#[macro_use(macro_one)]
+extern crate two_macros;
+
+pub fn main() {
+ macro_two!();
+ //~^ ERROR cannot find macro
+}