2023-07-27 06:40:22 -05:00
|
|
|
#![warn(clippy::maybe_misused_cfg)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
#[cfg(feature = "not-really-a-feature")]
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: feature may misspelled as features
|
|
|
|
//~| NOTE: `-D clippy::maybe-misused-cfg` implied by `-D warnings`
|
2023-07-27 06:40:22 -05:00
|
|
|
let _ = 1 + 2;
|
|
|
|
|
|
|
|
#[cfg(all(feature = "right", feature = "wrong"))]
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: feature may misspelled as features
|
2023-07-27 06:40:22 -05:00
|
|
|
let _ = 1 + 2;
|
|
|
|
|
|
|
|
#[cfg(all(feature = "wrong1", any(feature = "right", feature = "wrong2", feature, features)))]
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: feature may misspelled as features
|
|
|
|
//~| ERROR: feature may misspelled as features
|
2023-07-27 06:40:22 -05:00
|
|
|
let _ = 1 + 2;
|
|
|
|
}
|