]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/eager-from-opaque.rs
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[rust.git] / src / test / ui / hygiene / eager-from-opaque.rs
1 // Opaque macro can eagerly expand its input without breaking its resolution.
2 // Regression test for issue #63685.
3
4 // check-pass
5
6 macro_rules! foo {
7     () => {
8         "foo"
9     };
10 }
11
12 macro_rules! bar {
13     () => {
14         foo!()
15     };
16 }
17
18 fn main() {
19     format_args!(bar!());
20 }