2019-11-29 14:47:26 -06:00
|
|
|
error: needless `fn main` in doctest
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_doc_main.rs:7:5
|
2019-11-29 14:47:26 -06:00
|
|
|
|
|
2023-09-08 17:39:20 -05:00
|
|
|
LL | /// fn main() {
|
|
|
|
| _____^
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | /// unimplemented!();
|
|
|
|
LL | | /// }
|
|
|
|
| |_____^
|
2019-11-29 14:47:26 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-doctest-main` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_doctest_main)]`
|
2019-11-29 14:47:26 -06:00
|
|
|
|
2020-03-10 14:19:37 -05:00
|
|
|
error: needless `fn main` in doctest
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_doc_main.rs:16:5
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
2023-09-08 17:39:20 -05:00
|
|
|
LL | /// fn main() -> () {
|
|
|
|
| _____^
|
|
|
|
LL | |
|
|
|
|
LL | | /// unimplemented!();
|
|
|
|
LL | | /// }
|
|
|
|
| |_____^
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
error: needless `fn main` in doctest
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_doc_main.rs:24:5
|
2020-03-10 14:19:37 -05:00
|
|
|
|
|
2023-09-08 17:39:20 -05:00
|
|
|
LL | /// fn main() {
|
|
|
|
| _____^
|
|
|
|
LL | |
|
|
|
|
LL | | /// unimplemented!();
|
|
|
|
LL | | /// }
|
|
|
|
| |_____^
|
2020-03-10 14:19:37 -05:00
|
|
|
|
|
|
|
error: needless `fn main` in doctest
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_doc_main.rs:32:5
|
2020-03-10 14:19:37 -05:00
|
|
|
|
|
2023-09-08 17:39:20 -05:00
|
|
|
LL | /// // the fn is not always the first line
|
|
|
|
| _____^
|
|
|
|
LL | |
|
|
|
|
LL | | /// fn main() {
|
|
|
|
LL | | /// unimplemented!();
|
|
|
|
LL | | /// }
|
|
|
|
| |_____^
|
2020-03-10 14:19:37 -05:00
|
|
|
|
2020-08-28 09:10:16 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2019-11-29 14:47:26 -06:00
|
|
|
|