summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/extern-macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/extern/extern-macro.rs')
-rw-r--r--tests/ui/extern/extern-macro.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/extern/extern-macro.rs b/tests/ui/extern/extern-macro.rs
new file mode 100644
index 000000000..ab974e628
--- /dev/null
+++ b/tests/ui/extern/extern-macro.rs
@@ -0,0 +1,6 @@
+// #41719
+
+fn main() {
+ enum Foo {}
+ let _ = Foo::bar!(); //~ ERROR failed to resolve: partially resolved path in a macro
+}