summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro_undefined.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/macro_undefined.rs')
-rw-r--r--src/test/ui/macros/macro_undefined.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro_undefined.rs b/src/test/ui/macros/macro_undefined.rs
new file mode 100644
index 000000000..6ca1eb568
--- /dev/null
+++ b/src/test/ui/macros/macro_undefined.rs
@@ -0,0 +1,13 @@
+// Test macro_undefined issue
+
+mod m {
+ #[macro_export]
+ macro_rules! kl {
+ () => ()
+ }
+}
+
+fn main() {
+ k!(); //~ ERROR cannot find
+ kl!();
+}