]> git.lizzy.rs Git - rust.git/blob - tests/ui/empty/empty-comment.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / empty / empty-comment.rs
1 // `/**/` was previously regarded as a doc comment because it starts with `/**` and ends with `*/`.
2 // This could break some internal logic that assumes the length of a doc comment is at least 5,
3 // leading to an ICE.
4
5 macro_rules! one_arg_macro {
6     ($fmt:expr) => (print!(concat!($fmt, "\n")));
7 }
8
9 fn main() {
10     one_arg_macro!(/**/); //~ ERROR unexpected end
11 }