2021-07-06 22:54:54 -05:00
|
|
|
#[cfg(target_abi = "x")] //~ ERROR `cfg(target_abi)` is experimental
|
|
|
|
struct Foo(u64, u64);
|
|
|
|
|
2021-12-29 04:47:19 -06:00
|
|
|
#[cfg_attr(target_abi = "x", x)] //~ ERROR `cfg(target_abi)` is experimental
|
|
|
|
struct Bar(u64, u64);
|
|
|
|
|
2021-07-06 22:54:54 -05:00
|
|
|
#[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
|
|
|
|
}
|