rust/tests/ui/hygiene/eager-from-opaque-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
408 B
Rust
Raw Normal View History

2019-08-21 09:53:11 +00:00
// Regression test for the issue #63460.
//@ check-pass
2019-08-21 09:53:11 +00:00
#[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))
}