rust/tests/ui/cfg/expanded-cfg.rs
2023-01-11 09:32:08 +00:00

22 lines
305 B
Rust

// check-pass
macro_rules! mac {
{} => {
#[cfg(attr)]
mod m {
#[lang_item]
fn f() {}
#[cfg_attr(target_thread_local, custom)]
fn g() {}
}
#[cfg(attr)]
unconfigured_invocation!();
}
}
mac! {}
fn main() {}