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