rust/tests/ui/macros/issue-95267.rs
2023-01-11 09:32:08 +00:00

15 lines
280 B
Rust

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