We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f845c commit 29fe076Copy full SHA for 29fe076
src/test/ui/hygiene/eager-from-opaque.rs
@@ -0,0 +1,18 @@
1
+// Opaque macro can eagerly expand its input without breaking its resolution.
2
+// Regression test for issue #63685.
3
+
4
+macro_rules! foo {
5
+ () => {
6
+ "foo"
7
+ };
8
+}
9
10
+macro_rules! bar {
11
12
+ foo!() //~ ERROR cannot find macro `foo!` in this scope
13
14
15
16
+fn main() {
17
+ format_args!(bar!());
18
src/test/ui/hygiene/eager-from-opaque.stderr
@@ -0,0 +1,8 @@
+error: cannot find macro `foo!` in this scope
+ --> $DIR/eager-from-opaque.rs:12:9
+ |
+LL | foo!()
+ | ^^^
+error: aborting due to previous error
0 commit comments