2019-11-29 14:47:26 -06:00
|
|
|
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`
|
|
|
|
|
2020-03-10 14:19:37 -05:00
|
|
|
error: needless `fn main` in doctest
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/needless_doc_main.rs:16:4
|
2020-08-15 17:25:54 -05:00
|
|
|
|
|
|
|
|
LL | /// fn main() -> () {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: needless `fn main` in doctest
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/needless_doc_main.rs:24:4
|
2020-03-10 14:19:37 -05:00
|
|
|
|
|
|
|
|
LL | /// fn main() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: needless `fn main` in doctest
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/needless_doc_main.rs:32:4
|
2020-03-10 14:19:37 -05:00
|
|
|
|
|
|
|
|
LL | /// fn main() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2020-08-15 17:25:54 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2019-11-29 14:47:26 -06:00
|
|
|
|