rust/tests/ui/conditional-compilation/issue-34028.rs
2024-02-16 20:02:50 +00:00

11 lines
123 B
Rust

//@ check-pass
macro_rules! m {
() => { #[cfg(any())] fn f() {} }
}
trait T {}
impl T for () { m!(); }
fn main() {}