]> git.lizzy.rs Git - rust.git/blob - src/test/ui/useless_comment.stderr
improve unused doc comment diagnostic reporting
[rust.git] / src / test / ui / useless_comment.stderr
1 error: doc comment not used by rustdoc
2   --> $DIR/useless_comment.rs:4:5
3    |
4 LL |     /// a //~ ERROR doc comment not used by rustdoc
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/useless_comment.rs:1:9
9    |
10 LL | #![deny(unused_doc_comments)]
11    |         ^^^^^^^^^^^^^^^^^^^
12
13 error: doc comment not used by rustdoc
14   --> $DIR/useless_comment.rs:7:5
15    |
16 LL | /     /// multi-line //~ doc comment not used by rustdoc
17 LL | |     /// doc comment
18 LL | |     /// that is unused
19    | |______________________^
20
21 error: doc comment not used by rustdoc
22   --> $DIR/useless_comment.rs:11:9
23    |
24 LL |         /// c //~ ERROR doc comment not used by rustdoc
25    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: doc comment not used by rustdoc
28   --> $DIR/useless_comment.rs:16:5
29    |
30 LL |     /// foo //~ ERROR doc comment not used by rustdoc
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: doc comment not used by rustdoc
34   --> $DIR/useless_comment.rs:19:5
35    |
36 LL |     #[doc = "foo"] //~ ERROR doc comment not used by rustdoc
37    |     ^^^^^^^^^^^^^^
38
39 error: doc comment not used by rustdoc
40   --> $DIR/useless_comment.rs:20:5
41    |
42 LL |     #[doc = "bar"] //~ ERROR doc comment not used by rustdoc
43    |     ^^^^^^^^^^^^^^
44
45 error: aborting due to 6 previous errors
46