rust/tests/ui/cfg_features.fixed
2023-08-11 14:02:28 +00:00

13 lines
308 B
Rust

#![warn(clippy::maybe_misused_cfg)]
fn main() {
#[cfg(feature = "not-really-a-feature")]
let _ = 1 + 2;
#[cfg(all(feature = "right", feature = "wrong"))]
let _ = 1 + 2;
#[cfg(all(feature = "wrong1", any(feature = "right", feature = "wrong2", feature, features)))]
let _ = 1 + 2;
}