Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5d4bd2
commit c78af2b
Showing
4 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error: Missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:19:1 | ||
| | ||
LL | / mod module1 { | ||
LL | | } | ||
| |_^ | ||
| | ||
note: lint level defined here | ||
--> $DIR/lint-missing-doc-code-example.rs:2:9 | ||
| | ||
LL | #![deny(missing_doc_code_examples)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: Missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:37:3 | ||
| | ||
LL | /// doc | ||
| ^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|