Add a regression test for issue #63460

This commit is contained in:
Vadim Petrochenkov 2019-08-21 12:53:11 +03:00
parent 93d369bc2b
commit fe2dc91972

View File

@ -0,0 +1,22 @@
// 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))
}