rust/tests/ui/conditional-compilation/issue-34028.rs
2023-01-11 09:32:08 +00:00

11 lines
122 B
Rust

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