about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/doc/needless_doctest_main.stderr
blob: dd5474ccb85af1ae572e5e32297a20d78c7de10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
error: needless `fn main` in doctest
  --> tests/ui/doc/needless_doctest_main.rs:23:5
   |
LL |   /// fn main() {
   |  _____^
LL | |
LL | | ///     let a = 0;
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
  --> tests/ui/doc/needless_doctest_main.rs:77:5
   |
LL |   /// fn main() {
   |  _____^
LL | |
LL | | ///     // Hi!
LL | | ///     let _ = 0;
LL | | /// }
   | |_____^

error: needless `fn main` in doctest
  --> tests/ui/doc/needless_doctest_main.rs:88:5
   |
LL |   /// fn     main (){
   |  _____^
LL | |
LL | | ///     let _ = 0;
LL | | /// }
   | |_____^

error: aborting due to 3 previous errors