Skip to content

Commit 6b3edc2

Browse files
committed
Test that unconfigured macro-expanded macro invocations are not expanded.
1 parent 0558df2 commit 6b3edc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/compile-fail/expanded-cfg.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ macro_rules! mac {
2020
#[cfg_attr(target_thread_local, custom)]
2121
fn g() {}
2222
}
23+
24+
#[cfg(attr)]
25+
unconfigured_invocation!();
2326
}
2427
}
2528

0 commit comments

Comments
 (0)