Another test for missing crate documentation.

This commit is contained in:
daxpedda 2019-03-14 19:38:41 +01:00
parent e1096e3310
commit 9061fd3199
No known key found for this signature in database
GPG key ID: C722DCB6A191EEAB
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#![warn(clippy::missing_docs_in_private_items)]
fn main() {}

View file

@ -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