about summary refs log tree commit diff
path: root/tests/ui/hygiene/eager-from-opaque.rs
blob: 9208d30d026ceb6af36eb05841b543a00aa6e3dd (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!());
}