mirror of https://github.com/rust-lang/rust.git
Another test for missing crate documentation.
This commit is contained in:
parent
e1096e3310
commit
9061fd3199
|
@ -0,0 +1,3 @@
|
||||||
|
#![warn(clippy::missing_docs_in_private_items)]
|
||||||
|
|
||||||
|
fn main() {}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue