rust/tests/ui/cfg_features.fixed

13 lines
308 B
Rust
Raw Normal View History

2023-07-27 06:40:22 -05:00
#![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;
}