]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-cfg-target-abi.rs
Rollup merge of #94271 - RalfJung:downcast, r=oli-obk
[rust.git] / src / test / ui / feature-gates / feature-gate-cfg-target-abi.rs
1 #[cfg(target_abi = "x")] //~ ERROR `cfg(target_abi)` is experimental
2 struct Foo(u64, u64);
3
4 #[cfg_attr(target_abi = "x", x)] //~ ERROR `cfg(target_abi)` is experimental
5 struct Bar(u64, u64);
6
7 #[cfg(not(any(all(target_abi = "x"))))] //~ ERROR `cfg(target_abi)` is experimental
8 fn foo() {}
9
10 fn main() {
11     cfg!(target_abi = "x");
12     //~^ ERROR `cfg(target_abi)` is experimental and subject to change
13 }