1 error: doc comment not used by rustdoc
2 --> $DIR/useless_comment.rs:4:5
4 LL | /// a //~ ERROR doc comment not used by rustdoc
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: lint level defined here
8 --> $DIR/useless_comment.rs:1:9
10 LL | #![deny(unused_doc_comments)]
13 error: doc comment not used by rustdoc
14 --> $DIR/useless_comment.rs:7:5
16 LL | / /// multi-line //~ doc comment not used by rustdoc
17 LL | | /// doc comment
18 LL | | /// that is unused
19 | |______________________^
21 error: doc comment not used by rustdoc
22 --> $DIR/useless_comment.rs:11:9
24 LL | /// c //~ ERROR doc comment not used by rustdoc
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: doc comment not used by rustdoc
28 --> $DIR/useless_comment.rs:16:5
30 LL | /// foo //~ ERROR doc comment not used by rustdoc
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: doc comment not used by rustdoc
34 --> $DIR/useless_comment.rs:19:5
36 LL | #[doc = "foo"] //~ ERROR doc comment not used by rustdoc
39 error: doc comment not used by rustdoc
40 --> $DIR/useless_comment.rs:20:5
42 LL | #[doc = "bar"] //~ ERROR doc comment not used by rustdoc
45 error: aborting due to 6 previous errors