mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Add test for unknown Clippy attributes
This commit is contained in:
parent
1463d6f69f
commit
c4eb780156
2 changed files with 11 additions and 0 deletions
3
tests/ui/unknown_attribute.rs
Normal file
3
tests/ui/unknown_attribute.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
#[clippy::unknown]
|
||||
#[clippy::cyclomatic_complexity = "1"]
|
||||
fn main() {}
|
8
tests/ui/unknown_attribute.stderr
Normal file
8
tests/ui/unknown_attribute.stderr
Normal 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
|
||||
|
Loading…
Reference in a new issue