mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
40 lines
434 B
Rust
40 lines
434 B
Rust
//@ check-pass
|
|
|
|
// same as #95267, ignore doc comment although it's a bug.
|
|
|
|
macro_rules! m1 {
|
|
(
|
|
$(
|
|
///
|
|
$expr: expr,
|
|
)*
|
|
) => {};
|
|
}
|
|
|
|
m1! {}
|
|
|
|
macro_rules! m2 {
|
|
(
|
|
$(
|
|
///
|
|
$expr: expr,
|
|
///
|
|
)*
|
|
) => {};
|
|
}
|
|
|
|
m2! {}
|
|
|
|
macro_rules! m3 {
|
|
(
|
|
$(
|
|
///
|
|
$tt: tt,
|
|
)*
|
|
) => {};
|
|
}
|
|
|
|
m3! {}
|
|
|
|
fn main() {}
|