mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
14 lines
402 B
Rust
14 lines
402 B
Rust
#[cfg(target_abi = "x")] //~ ERROR `cfg(target_abi)` is experimental
|
|
struct Foo(u64, u64);
|
|
|
|
#[cfg_attr(target_abi = "x", x)] //~ ERROR `cfg(target_abi)` is experimental
|
|
struct Bar(u64, u64);
|
|
|
|
#[cfg(not(any(all(target_abi = "x"))))] //~ ERROR `cfg(target_abi)` is experimental
|
|
fn foo() {}
|
|
|
|
fn main() {
|
|
cfg!(target_abi = "x");
|
|
//~^ ERROR `cfg(target_abi)` is experimental and subject to change
|
|
}
|