mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
22 lines
483 B
Text
22 lines
483 B
Text
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:7:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::needless-doctest-main` implied by `-D warnings`
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:15:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:23:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|