1 error: unused doc comment
2 --> $DIR/useless-comment.rs:9:1
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macros
7 note: the lint level is defined here
8 --> $DIR/useless-comment.rs:3:9
10 LL | #![deny(unused_doc_comments)]
12 = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
14 error: unused doc comment
15 --> $DIR/useless-comment.rs:32:5
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macros
20 = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
22 error: unused doc comment
23 --> $DIR/useless-comment.rs:13:5
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 | ----------- rustdoc does not generate documentation for statements
30 error: unused doc comment
31 --> $DIR/useless-comment.rs:16:5
34 LL | | /// doc comment
35 LL | | /// that is unused
36 | |______________________^
42 | |_____- rustdoc does not generate documentation for expressions
44 error: unused doc comment
45 --> $DIR/useless-comment.rs:20:9
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 | ------- rustdoc does not generate documentation for match arms
52 error: unused doc comment
53 --> $DIR/useless-comment.rs:25:5
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 | --------- rustdoc does not generate documentation for expressions
60 error: unused doc comment
61 --> $DIR/useless-comment.rs:28:5
67 | - rustdoc does not generate documentation for expressions
69 error: unused doc comment
70 --> $DIR/useless-comment.rs:29:5
75 | - rustdoc does not generate documentation for expressions
77 error: unused doc comment
78 --> $DIR/useless-comment.rs:35:13
80 LL | let x = /** comment */ 47;
81 | ^^^^^^^^^^^^^^ -- rustdoc does not generate documentation for expressions
83 error: unused doc comment
84 --> $DIR/useless-comment.rs:37:5
87 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 | |_____- rustdoc does not generate documentation for expressions
93 error: aborting due to 10 previous errors