about summary refs log tree commit diff
path: root/tests/ui/macros/expand-full-no-resolution.rs
blob: 4d90b8e2a531a16fdd2a2d2706d497655a3960ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@edition: 2018

// https://github.com/rust-lang/rust/issues/98291

macro_rules! wrap {
    () => {
        macro_rules! _a {
            () => {
                ""
            };
        }
    };
}

wrap!();

fn main() {
    format_args!(a!()); //~ ERROR: cannot find macro `a` in this scope
    env!(a!()); //~ ERROR: cannot find macro `a` in this scope
}