]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-cfg-target-compact.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-cfg-target-compact.rs
1 #[cfg(target(os = "x"))] //~ ERROR compact `cfg(target(..))` is experimental
2 struct Foo(u64, u64);
3
4 #[cfg_attr(target(os = "x"), x)] //~ ERROR compact `cfg(target(..))` is experimental
5 struct Bar(u64, u64);
6
7 #[cfg(not(any(all(target(os = "x")))))] //~ ERROR compact `cfg(target(..))` is experimental
8 fn foo() {}
9
10 fn main() {
11     cfg!(target(os = "x"));
12     //~^ ERROR compact `cfg(target(..))` is experimental and subject to change
13 }