Skip to content

Commit

Permalink
Add a regression test for issue #63460
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Aug 21, 2019
1 parent 93d369b commit fe2dc91
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/ui/hygiene/eager-from-opaque-2.rs
Original file line number Diff line number Diff line change
@@ -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))
}

0 comments on commit fe2dc91

Please sign in to comment.