Skip to content

Commit

Permalink
Another test for missing crate documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Mar 14, 2019
1 parent e1096e3 commit 9061fd3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/missing-doc-crate-missing.rs
@@ -0,0 +1,3 @@
#![warn(clippy::missing_docs_in_private_items)]

fn main() {}
12 changes: 12 additions & 0 deletions tests/ui/missing-doc-crate-missing.stderr
@@ -0,0 +1,12 @@
error: missing documentation for crate
--> $DIR/missing-doc-crate-missing.rs:1:1
|
LL | / #![warn(clippy::missing_docs_in_private_items)]
LL | |
LL | | fn main() {}
| |____________^
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`

error: aborting due to previous error

0 comments on commit 9061fd3

Please sign in to comment.