fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
583 B17 linesraw
1#![warn(clippy::maybe_misused_cfg)]
2
3fn main() {
4    #[cfg(feature = "not-really-a-feature")]
5    //~^ ERROR: feature may misspelled as features
6    //~| NOTE: `-D clippy::maybe-misused-cfg` implied by `-D warnings`
7    let _ = 1 + 2;
8
9    #[cfg(all(feature = "right", feature = "wrong"))]
10    //~^ ERROR: feature may misspelled as features
11    let _ = 1 + 2;
12
13    #[cfg(all(feature = "wrong1", any(feature = "right", feature = "wrong2", feature, features)))]
14    //~^ ERROR: feature may misspelled as features
15    //~| ERROR: feature may misspelled as features
16    let _ = 1 + 2;
17}