fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
991 B47 linesraw
1error: needless `fn main` in doctest
2  --> $DIR/needless_doc_main.rs:7:5
3   |
4LL |   /// fn main() {
5   |  _____^
6LL | |
7LL | |
8LL | | ///     unimplemented!();
9LL | | /// }
10   | |_____^
11   |
12   = note: `-D clippy::needless-doctest-main` implied by `-D warnings`
13   = help: to override `-D warnings` add `#[allow(clippy::needless_doctest_main)]`
14
15error: needless `fn main` in doctest
16  --> $DIR/needless_doc_main.rs:16:5
17   |
18LL |   /// fn main() -> () {
19   |  _____^
20LL | |
21LL | | ///     unimplemented!();
22LL | | /// }
23   | |_____^
24
25error: needless `fn main` in doctest
26  --> $DIR/needless_doc_main.rs:24:5
27   |
28LL |   /// fn main() {
29   |  _____^
30LL | |
31LL | | ///     unimplemented!();
32LL | | /// }
33   | |_____^
34
35error: needless `fn main` in doctest
36  --> $DIR/needless_doc_main.rs:32:5
37   |
38LL |   /// // the fn is not always the first line
39   |  _____^
40LL | |
41LL | | /// fn main() {
42LL | | ///     unimplemented!();
43LL | | /// }
44   | |_____^
45
46error: aborting due to 4 previous errors
47