error: needless `fn main` in doctest
  --> tests/ui/doc/needless_doctest_main.rs:5:5
   |
LL | /// fn main() {
   |     ^^^^^^^
   |
   = 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
  --> tests/ui/doc/needless_doctest_main.rs:64:5
   |
LL | /// fn     main (){
   |     ^^^^^^^^^^^

error: aborting due to 2 previous errors

