mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Another test for missing crate documentation.
This commit is contained in:
parent
e1096e3310
commit
9061fd3199
2 changed files with 15 additions and 0 deletions
3
tests/ui/missing-doc-crate-missing.rs
Normal file
3
tests/ui/missing-doc-crate-missing.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
#![warn(clippy::missing_docs_in_private_items)]
|
||||
|
||||
fn main() {}
|
12
tests/ui/missing-doc-crate-missing.stderr
Normal file
12
tests/ui/missing-doc-crate-missing.stderr
Normal 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
|
||||
|
Loading…
Reference in a new issue