mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
23 lines
407 B
Rust
23 lines
407 B
Rust
// Regression test for the issue #63460.
|
|
|
|
// check-pass
|
|
|
|
#[macro_export]
|
|
macro_rules! separator {
|
|
() => { "/" };
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! concat_separator {
|
|
( $e:literal, $($other:literal),+ ) => {
|
|
concat!($e, $crate::separator!(), $crate::concat_separator!($($other),+))
|
|
};
|
|
( $e:literal ) => {
|
|
$e
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
println!("{}", concat_separator!(2, 3, 4))
|
|
}
|