mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
14 lines
434 B
Rust
14 lines
434 B
Rust
#[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
|
|
}
|