mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
24 lines
361 B
Rust
24 lines
361 B
Rust
//@ check-pass
|
|
|
|
#![allow(unexpected_cfgs)] // since we different cfgs
|
|
|
|
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() {}
|