Add tests for unknwon_clippy_lints lint

This commit is contained in:
flip1995 2018-09-10 17:21:50 +02:00 committed by flip1995
parent f6d57862c7
commit 8d516b36fe
No known key found for this signature in database
GPG key ID: E8E897A5870E41C2
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#![allow(clippy::All)]
#![warn(clippy::pedantic)]
#[warn(clippy::if_not_els)]
fn main() {
}

View file

@ -0,0 +1,16 @@
error: unknwon clippy lint: clippy::if_not_els
--> $DIR/unknown_clippy_lints.rs:5:8
|
5 | #[warn(clippy::if_not_els)]
| ^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
error: unknwon clippy lint: clippy::All
--> $DIR/unknown_clippy_lints.rs:2:10
|
2 | #![allow(clippy::All)]
| ^^^^^^^^^^^ help: lowercase the lint name: `all`
error: aborting due to 2 previous errors