mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
18 lines
328 B
Rust
18 lines
328 B
Rust
#![deny(unused_doc_comments)]
|
|
#![feature(rustc_attrs)]
|
|
|
|
macro_rules! foo { () => {}; }
|
|
|
|
fn main() {
|
|
/// line1 //~ ERROR: unused doc comment
|
|
/// line2
|
|
/// line3
|
|
foo!();
|
|
|
|
// Ensure we still detect another doc-comment block.
|
|
/// line1 //~ ERROR: unused doc comment
|
|
/// line2
|
|
/// line3
|
|
foo!();
|
|
}
|