Skip to content

Commit c4eb780

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

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/ui/unknown_attribute.rs

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

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)