summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/cfg_features.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/cfg_features.fixed')
-rw-r--r--src/tools/clippy/tests/ui/cfg_features.fixed20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/tools/clippy/tests/ui/cfg_features.fixed b/src/tools/clippy/tests/ui/cfg_features.fixed
index 3d52f2382..0fe38f169 100644
--- a/src/tools/clippy/tests/ui/cfg_features.fixed
+++ b/src/tools/clippy/tests/ui/cfg_features.fixed
@@ -2,16 +2,28 @@
fn main() {
#[cfg(feature = "not-really-a-feature")]
- //~^ ERROR: feature may misspelled as features
+ //~^ ERROR: 'feature' may be misspelled as 'features'
//~| NOTE: `-D clippy::maybe-misused-cfg` implied by `-D warnings`
let _ = 1 + 2;
#[cfg(all(feature = "right", feature = "wrong"))]
- //~^ ERROR: feature may misspelled as features
+ //~^ ERROR: 'feature' may be misspelled as 'features'
let _ = 1 + 2;
#[cfg(all(feature = "wrong1", any(feature = "right", feature = "wrong2", feature, features)))]
- //~^ ERROR: feature may misspelled as features
- //~| ERROR: feature may misspelled as features
+ //~^ ERROR: 'feature' may be misspelled as 'features'
+ //~| ERROR: 'feature' may be misspelled as 'features'
let _ = 1 + 2;
+
+ #[cfg(test)]
+ //~^ ERROR: 'test' may be misspelled as 'tests'
+ let _ = 2;
+ #[cfg(test)]
+ //~^ ERROR: 'test' may be misspelled as 'Test'
+ let _ = 2;
+
+ #[cfg(all(test, test))]
+ //~^ ERROR: 'test' may be misspelled as 'tests'
+ //~| ERROR: 'test' may be misspelled as 'Test'
+ let _ = 2;
}