rust-clippy/tests/ui/non_minimal_cfg.rs

18 lines
206 B
Rust
Raw Normal View History

2023-05-09 10:13:49 +00:00
//@run-rustfix
#![allow(unused)]
#[cfg(all(windows))]
fn hermit() {}
#[cfg(any(windows))]
fn wasi() {}
#[cfg(all(any(unix), all(not(windows))))]
fn the_end() {}
#[cfg(any())]
fn any() {}
2023-05-09 10:13:49 +00:00
fn main() {}