2023-06-06 10:11:08 -05:00
|
|
|
// same as #95267, ignore doc comment although it's a bug.
|
|
|
|
|
|
|
|
macro_rules! m1 {
|
|
|
|
(
|
|
|
|
$(
|
|
|
|
///
|
|
|
|
)*
|
|
|
|
//~^^^ERROR repetition matches empty token tree
|
|
|
|
) => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
m1! {}
|
|
|
|
|
|
|
|
macro_rules! m2 {
|
|
|
|
(
|
|
|
|
$(
|
|
|
|
///
|
|
|
|
)+
|
|
|
|
//~^^^ERROR repetition matches empty token tree
|
|
|
|
) => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
m2! {}
|
|
|
|
|
|
|
|
macro_rules! m3 {
|
|
|
|
(
|
|
|
|
$(
|
|
|
|
///
|
|
|
|
)?
|
|
|
|
//~^^^ERROR repetition matches empty token tree
|
|
|
|
) => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
m3! {}
|
|
|
|
|
2023-06-06 11:26:16 -05:00
|
|
|
|
|
|
|
macro_rules! m4 {
|
|
|
|
(
|
|
|
|
$(
|
|
|
|
///
|
|
|
|
///
|
|
|
|
)*
|
|
|
|
//~^^^^ERROR repetition matches empty token tree
|
|
|
|
) => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
m4! {}
|
|
|
|
|
2023-06-06 10:11:08 -05:00
|
|
|
fn main() {}
|