summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/issue-47311.rs
blob: 3f1b7397301c1c60f6fc8da77a37d4eeffb41888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

#![feature(decl_macro)]
#![allow(unused)]

macro m($S:ident, $x:ident) {
    $S { $x: 0 }
}

mod foo {
    struct S { x: i32 }

    fn f() { ::m!(S, x); }
}

fn main() {}