]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/eager-from-opaque-2.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[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 }