mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Add a regression test for issue #63460
This commit is contained in:
parent
93d369bc2b
commit
fe2dc91972
22
src/test/ui/hygiene/eager-from-opaque-2.rs
Normal file
22
src/test/ui/hygiene/eager-from-opaque-2.rs
Normal 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))
|
||||
}
|
Loading…
Reference in New Issue
Block a user