about summary refs log tree commit diff
path: root/tests/ui/macros/issue-95267.rs
blob: ab003413b58960a186fed5885180917293113ea9 (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!();
}