mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 17:28:07 +00:00
12 lines
312 B
Rust
12 lines
312 B
Rust
#![warn(clippy::maybe_misused_cfg)]
|
|
|
|
fn main() {
|
|
#[cfg(features = "not-really-a-feature")]
|
|
let _ = 1 + 2;
|
|
|
|
#[cfg(all(feature = "right", features = "wrong"))]
|
|
let _ = 1 + 2;
|
|
|
|
#[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
|
|
let _ = 1 + 2;
|
|
}
|