Add test about missing docs at crate level

This commit is contained in:
Urgau 2024-09-09 14:07:36 +02:00
parent a1a8627dd7
commit 0f9cb070bc
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
// This test checks that we lint on the crate when it's missing a documentation.
//
//@ compile-flags: -Dmissing-docs --crate-type=lib
//~ ERROR missing documentation for the crate

View File

@ -0,0 +1,10 @@
error: missing documentation for the crate
--> $DIR/lint-missing-doc-crate.rs:4:47
|
LL |
| ^
|
= note: requested on the command line with `-D missing-docs`
error: aborting due to 1 previous error