rust/src/test/ui/expanded-cfg.rs
2019-06-08 23:55:24 +03:00

24 lines
324 B
Rust

// skip-codegen
// compile-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() {}