rust/tests/ui/lint/unused/unused-doc-comments-for-macros.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
328 B
Rust
Raw Normal View History

#![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!();
}