Add test for unknown Clippy attributes

This commit is contained in:
flip1995 2019-02-28 16:47:00 +01:00
parent 1463d6f69f
commit c4eb780156
No known key found for this signature in database
GPG key ID: 693086869D506637
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#[clippy::unknown]
#[clippy::cyclomatic_complexity = "1"]
fn main() {}

View file

@ -0,0 +1,8 @@
error: Usage of unknown attribute
--> $DIR/unknown_attribute.rs:1:11
|
LL | #[clippy::unknown]
| ^^^^^^^
error: aborting due to previous error