mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
13 lines
312 B
Rust
13 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;
|
||
|
}
|