Skip to content

Commit 9061fd3

Browse files
committed
Another test for missing crate documentation.
1 parent e1096e3 commit 9061fd3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/ui/missing-doc-crate-missing.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![warn(clippy::missing_docs_in_private_items)]
2+
3+
fn main() {}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error: missing documentation for crate
2+
--> $DIR/missing-doc-crate-missing.rs:1:1
3+
|
4+
LL | / #![warn(clippy::missing_docs_in_private_items)]
5+
LL | |
6+
LL | | fn main() {}
7+
| |____________^
8+
|
9+
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
10+
11+
error: aborting due to previous error
12+

0 commit comments

Comments
 (0)