summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-cfg-target-compact.rs
blob: df81b7d2297eae80732c4bebc28299789edd1060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(target(os = "x"))] //~ ERROR compact `cfg(target(..))` is experimental
struct Foo(u64, u64);

#[cfg_attr(target(os = "x"), x)] //~ ERROR compact `cfg(target(..))` is experimental
struct Bar(u64, u64);

#[cfg(not(any(all(target(os = "x")))))] //~ ERROR compact `cfg(target(..))` is experimental
fn foo() {}

fn main() {
    cfg!(target(os = "x"));
    //~^ ERROR compact `cfg(target(..))` is experimental and subject to change
}