summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-95267.rs
blob: a2fe402bccf8ff325b6dd0907652bb044321b618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

// The doc comment here is ignored. This is a bug, but #95267 showed that
// existing programs rely on this behaviour, and changing it would require some
// care and a transition period.
macro_rules! f {
    (
        /// ab
    ) => {};
}

fn main() {
    f!();
}