]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-doc-comments-for-macros.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / lint / unused / unused-doc-comments-for-macros.rs
1 #![deny(unused_doc_comments)]
2 #![feature(rustc_attrs)]
3
4 macro_rules! foo { () => {}; }
5
6 fn main() {
7     /// line1 //~ ERROR: unused doc comment
8     /// line2
9     /// line3
10     foo!();
11
12     // Ensure we still detect another doc-comment block.
13     /// line1 //~ ERROR: unused doc comment
14     /// line2
15     /// line3
16     foo!();
17 }