summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/eager-from-opaque.rs
blob: 6f3215dd697f321cf279482cba388e45741c4936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Opaque macro can eagerly expand its input without breaking its resolution.
// Regression test for issue #63685.

// check-pass

macro_rules! foo {
    () => {
        "foo"
    };
}

macro_rules! bar {
    () => {
        foo!()
    };
}

fn main() {
    format_args!(bar!());
}