]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-cfg-target-vendor.rs
MetadataOnlyCodegenBackend: remove `is_inline` call
[rust.git] / src / test / ui / feature-gates / feature-gate-cfg-target-vendor.rs
1 #[cfg(target_vendor = "x")] //~ ERROR `cfg(target_vendor)` is experimental
2 #[cfg_attr(target_vendor = "x", x)] //~ ERROR `cfg(target_vendor)` is experimental
3 struct Foo(u64, u64);
4
5 #[cfg(not(any(all(target_vendor = "x"))))] //~ ERROR `cfg(target_vendor)` is experimental
6 fn foo() {}
7
8 fn main() {
9     cfg!(target_vendor = "x");
10     //~^ ERROR `cfg(target_vendor)` is experimental and subject to change
11 }