about summary refs log tree commit diff
path: root/tests/ui/resolve/nonexistent-macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/nonexistent-macro.rs')
-rw-r--r--tests/ui/resolve/nonexistent-macro.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/resolve/nonexistent-macro.rs b/tests/ui/resolve/nonexistent-macro.rs
new file mode 100644
index 00000000000..663075473a1
--- /dev/null
+++ b/tests/ui/resolve/nonexistent-macro.rs
@@ -0,0 +1,6 @@
+//! Test error handling for undefined macro calls
+
+fn main() {
+    iamnotanextensionthatexists!("");
+    //~^ ERROR cannot find macro `iamnotanextensionthatexists` in this scope
+}