Skip to content

Commit 0f9cb07

Browse files
committed
Add test about missing docs at crate level
1 parent a1a8627 commit 0f9cb07

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: tests/ui/lint/lint-missing-doc-crate.rs

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

Diff for: tests/ui/lint/lint-missing-doc-crate.stderr

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: missing documentation for the crate
2+
--> $DIR/lint-missing-doc-crate.rs:4:47
3+
|
4+
LL |
5+
| ^
6+
|
7+
= note: requested on the command line with `-D missing-docs`
8+
9+
error: aborting due to 1 previous error
10+

0 commit comments

Comments
 (0)