about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-49074.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/issue-49074.rs')
-rw-r--r--tests/ui/resolve/issue-49074.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-49074.rs b/tests/ui/resolve/issue-49074.rs
new file mode 100644
index 00000000000..752bb345b70
--- /dev/null
+++ b/tests/ui/resolve/issue-49074.rs
@@ -0,0 +1,13 @@
+// Check that unknown attribute error is shown even if there are unresolved macros.
+
+#[marco_use] // typo
+//~^ ERROR cannot find attribute `marco_use` in this scope
+mod foo {
+    macro_rules! bar {
+        () => ();
+    }
+}
+
+fn main() {
+   bar!(); //~ ERROR cannot find macro `bar` in this scope
+}