2024-04-24 20:06:54 +00:00
|
|
|
#[cfg(target(os = "linux"))] //~ ERROR compact `cfg(target(..))` is experimental
|
2022-04-25 10:07:21 +00:00
|
|
|
struct Foo(u64, u64);
|
|
|
|
|
2024-04-24 20:06:54 +00:00
|
|
|
#[cfg_attr(target(os = "linux"), non_exhaustive)] //~ ERROR compact `cfg(target(..))` is experimental
|
2022-04-25 10:07:21 +00:00
|
|
|
struct Bar(u64, u64);
|
|
|
|
|
2024-04-24 20:06:54 +00:00
|
|
|
#[cfg(not(any(all(target(os = "linux")))))] //~ ERROR compact `cfg(target(..))` is experimental
|
2022-04-25 10:07:21 +00:00
|
|
|
fn foo() {}
|
|
|
|
|
|
|
|
fn main() {
|
2024-04-24 20:06:54 +00:00
|
|
|
cfg!(target(os = "linux"));
|
2022-04-25 10:07:21 +00:00
|
|
|
//~^ ERROR compact `cfg(target(..))` is experimental and subject to change
|
|
|
|
}
|