2018-05-19 01:13:53 +03:00
|
|
|
#![deny(unused_doc_comments)]
|
2017-07-16 00:17:35 +02:00
|
|
|
|
|
|
|
fn foo() {
|
2017-07-27 20:40:20 +02:00
|
|
|
/// a //~ ERROR doc comment not used by rustdoc
|
2017-07-16 00:17:35 +02:00
|
|
|
let x = 12;
|
|
|
|
|
2017-07-27 20:40:20 +02:00
|
|
|
/// b //~ doc comment not used by rustdoc
|
2017-07-16 00:17:35 +02:00
|
|
|
match x {
|
2017-07-27 20:40:20 +02:00
|
|
|
/// c //~ ERROR doc comment not used by rustdoc
|
2017-07-16 00:17:35 +02:00
|
|
|
1 => {},
|
|
|
|
_ => {}
|
2017-07-02 01:37:47 +02:00
|
|
|
}
|
2017-07-16 00:17:35 +02:00
|
|
|
|
2017-07-27 20:40:20 +02:00
|
|
|
/// foo //~ ERROR doc comment not used by rustdoc
|
2017-07-16 00:17:35 +02:00
|
|
|
unsafe {}
|
2017-07-02 01:37:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2017-07-16 00:17:35 +02:00
|
|
|
foo();
|
2017-12-30 02:25:40 +08:00
|
|
|
}
|