Add UI test for mispelled test
This commit is contained in:
parent
74451cd060
commit
a621d71b4e
@ -14,4 +14,16 @@ fn main() {
|
||||
//~^ ERROR: feature may misspelled as features
|
||||
//~| ERROR: feature may 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;
|
||||
}
|
||||
|
@ -14,4 +14,16 @@ fn main() {
|
||||
//~^ ERROR: feature may misspelled as features
|
||||
//~| ERROR: feature may misspelled as features
|
||||
let _ = 1 + 2;
|
||||
|
||||
#[cfg(tests)]
|
||||
//~^ ERROR: 'test' may be misspelled as 'tests'
|
||||
let _ = 2;
|
||||
#[cfg(Test)]
|
||||
//~^ ERROR: 'test' may be misspelled as 'Test'
|
||||
let _ = 2;
|
||||
|
||||
#[cfg(all(tests, Test))]
|
||||
//~^ ERROR: 'test' may be misspelled as 'tests'
|
||||
//~| ERROR: 'test' may be misspelled as 'Test'
|
||||
let _ = 2;
|
||||
}
|
||||
|
@ -25,5 +25,29 @@ error: feature may misspelled as features
|
||||
LL | #[cfg(all(features = "wrong1", any(feature = "right", features = "wrong2", feature, features)))]
|
||||
| ^^^^^^^^^^^^^^^^^^^ help: use: `feature = "wrong2"`
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
error: 'test' may be misspelled as 'tests'
|
||||
--> $DIR/cfg_features.rs:18:11
|
||||
|
|
||||
LL | #[cfg(tests)]
|
||||
| ^^^^^ help: do you mean: `test`
|
||||
|
||||
error: 'test' may be misspelled as 'Test'
|
||||
--> $DIR/cfg_features.rs:21:11
|
||||
|
|
||||
LL | #[cfg(Test)]
|
||||
| ^^^^ help: do you mean: `test`
|
||||
|
||||
error: 'test' may be misspelled as 'tests'
|
||||
--> $DIR/cfg_features.rs:25:15
|
||||
|
|
||||
LL | #[cfg(all(tests, Test))]
|
||||
| ^^^^^ help: do you mean: `test`
|
||||
|
||||
error: 'test' may be misspelled as 'Test'
|
||||
--> $DIR/cfg_features.rs:25:22
|
||||
|
|
||||
LL | #[cfg(all(tests, Test))]
|
||||
| ^^^^ help: do you mean: `test`
|
||||
|
||||
error: aborting due to 8 previous errors
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user