-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Andre Bogus
committed
Mar 3, 2020
1 parent
f44181e
commit baae1f9
Showing
4 changed files
with
42 additions
and
9 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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
error: needless `fn main` in doctest | ||
--> $DIR/needless_doc_main.rs:7:4 | ||
--> $DIR/needless_doc_main.rs:7:5 | ||
| | ||
LL | /// fn main() { | ||
| ^^^^^^^^^^^^ | ||
| ^^^^^^^^^ | ||
| | ||
= note: `-D clippy::needless-doctest-main` implied by `-D warnings` | ||
|
||
error: aborting due to previous error | ||
error: needless `fn main` in doctest | ||
--> $DIR/needless_doc_main.rs:17:5 | ||
| | ||
LL | /// fn main() { | ||
| ^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|