mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
50 lines
659 B
Rust
50 lines
659 B
Rust
// 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! {}
|
|
|
|
|
|
macro_rules! m4 {
|
|
(
|
|
$(
|
|
///
|
|
///
|
|
)*
|
|
//~^^^^ERROR repetition matches empty token tree
|
|
) => {};
|
|
}
|
|
|
|
m4! {}
|
|
|
|
fn main() {}
|