]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/cfg_features.rs
1 #![warn(clippy::maybe_misused_cfg)]
4 #[cfg(features = "not-really-a-feature")]
5 //~^ ERROR: 'feature' may be misspelled as 'features'
6 //~| NOTE: `-D clippy::maybe-misused-cfg` implied by `-D warnings`
9 #[cfg(all(feature = "right", features = "wrong"))]
10 //~^ ERROR: 'feature' may be misspelled as 'features'
13 #[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
14 //~^ ERROR: 'feature' may be misspelled as 'features'
15 //~| ERROR: 'feature' may be misspelled as 'features'
19 //~^ ERROR: 'test' may be misspelled as 'tests'
22 //~^ ERROR: 'test' may be misspelled as 'Test'
25 #[cfg(all(tests, Test))]
26 //~^ ERROR: 'test' may be misspelled as 'tests'
27 //~| ERROR: 'test' may be misspelled as 'Test'