mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Add test about missing docs at crate level
This commit is contained in:
parent
a1a8627dd7
commit
0f9cb070bc
4
tests/ui/lint/lint-missing-doc-crate.rs
Normal file
4
tests/ui/lint/lint-missing-doc-crate.rs
Normal 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
|
10
tests/ui/lint/lint-missing-doc-crate.stderr
Normal file
10
tests/ui/lint/lint-missing-doc-crate.stderr
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user