rust/tests/ui/needless_doc_main.stderr
Andre Bogus ef7587d957 Less needless_doctest_main false positives
This checks if a) the `fn main() {}` function is empty or if the doctest contains a `static`. In both cases don't lint.
2019-11-29 21:47:26 +01:00

11 lines
236 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: aborting due to previous error