summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-cfg-target-abi.rs
blob: d005dc3ad456dc4c16afbd64794da7b4bf1a1d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[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
}