2019-11-29 21:47:26 +01: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 20:19:37 +01:00
|
|
|
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
|
2019-11-29 21:47:26 +01:00
|
|
|
|