]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/eager-from-opaque-2.rs
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / eager-from-opaque-2.rs
1 // Regression test for the issue #63460.
2
3 // check-pass
4
5 #[macro_export]
6 macro_rules! separator {
7     () => { "/" };
8 }
9
10 #[macro_export]
11 macro_rules! concat_separator {
12     ( $e:literal, $($other:literal),+ ) => {
13         concat!($e, $crate::separator!(), $crate::concat_separator!($($other),+))
14     };
15     ( $e:literal ) => {
16         $e
17     }
18 }
19
20 fn main() {
21     println!("{}", concat_separator!(2, 3, 4))
22 }