]> git.lizzy.rs Git - rust.git/blob - src/test/ui/useless_comment.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / useless_comment.rs
1 #![deny(unused_doc_comments)]
2
3 fn foo() {
4     /// a //~ ERROR doc comment not used by rustdoc
5     let x = 12;
6
7     /// b //~ doc comment not used by rustdoc
8     match x {
9         /// c //~ ERROR doc comment not used by rustdoc
10         1 => {},
11         _ => {}
12     }
13
14     /// foo //~ ERROR doc comment not used by rustdoc
15     unsafe {}
16 }
17
18 fn main() {
19     foo();
20 }