diff options
Diffstat (limited to 'tests/ui/conditional-compilation/issue-34028.rs')
-rw-r--r-- | tests/ui/conditional-compilation/issue-34028.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/conditional-compilation/issue-34028.rs b/tests/ui/conditional-compilation/issue-34028.rs new file mode 100644 index 000000000..d761c0c82 --- /dev/null +++ b/tests/ui/conditional-compilation/issue-34028.rs @@ -0,0 +1,10 @@ +// check-pass + +macro_rules! m { + () => { #[cfg(any())] fn f() {} } +} + +trait T {} +impl T for () { m!(); } + +fn main() {} |