mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
29 lines
617 B
Plaintext
29 lines
617 B
Plaintext
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:14:4
|
|
|
|
|
LL | /// fn main() -> () {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:21:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: needless `fn main` in doctest
|
|
--> $DIR/needless_doc_main.rs:28:4
|
|
|
|
|
LL | /// fn main() {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|