Skip to content

Commit 9c697c2

Browse files
committed
Add test for unknown Clippy attributes
1 parent 1463d6f commit 9c697c2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/ui/unknown_attribute.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[clippy::unknown]
2+
#[clippy::cyclomatic_complexity = "1"]
3+
fn main() {}
4+

tests/ui/unknown_attribute.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: Usage of unknown attribute
2+
--> $DIR/unknown_attribute.rs:1:11
3+
|
4+
LL | #[clippy::unknown]
5+
| ^^^^^^^
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)