summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-49074.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/resolve/issue-49074.rs')
-rw-r--r--src/test/ui/resolve/issue-49074.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/resolve/issue-49074.rs b/src/test/ui/resolve/issue-49074.rs
new file mode 100644
index 000000000..752bb345b
--- /dev/null
+++ b/src/test/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
+}