mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-21 19:00:26 +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!();
|
|
}
|