Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b3edc2

Browse files
committedMay 27, 2016
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)
Please sign in to comment.