mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
29 lines
700 B
Text
29 lines
700 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`
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_doctest_main)]`
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:16:4
|
|
|
|
|
LL | /// fn main() -> () {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:24:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:32:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|