rust/tests/ui/needless_doc_main.stderr

48 lines
1007 B
Plaintext
Raw Normal View History

error: needless `fn main` in doctest
2024-02-17 06:16:29 -06:00
--> tests/ui/needless_doc_main.rs:7:5
|
LL | /// fn main() {
| _____^
LL | |
LL | |
LL | | /// unimplemented!();
LL | | /// }
| |_____^
|
= 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
2024-02-17 06:16:29 -06:00
--> tests/ui/needless_doc_main.rs:16:5
|
LL | /// fn main() -> () {
| _____^
LL | |
LL | | /// unimplemented!();
LL | | /// }
| |_____^
error: needless `fn main` in doctest
2024-02-17 06:16:29 -06:00
--> tests/ui/needless_doc_main.rs:24:5
|
LL | /// fn main() {
| _____^
LL | |
LL | | /// unimplemented!();
LL | | /// }
| |_____^
error: needless `fn main` in doctest
2024-02-17 06:16:29 -06:00
--> tests/ui/needless_doc_main.rs:32:5
|
LL | /// // the fn is not always the first line
| _____^
LL | |
LL | | /// fn main() {
LL | | /// unimplemented!();
LL | | /// }
| |_____^
error: aborting due to 4 previous errors