1
Fork 0
rust/src/test/ui/useless_comment.rs

21 lines
363 B
Rust
Raw Normal View History

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-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 {}
}
fn main() {
2017-07-16 00:17:35 +02:00
foo();
}