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

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

mod foo {
    pub macro m($s:tt, $i:tt) {
        $s.$i
    }
}

mod bar {
    struct S(i32);
    fn f() {
        let s = S(0);
        ::foo::m!(s, 0);
    }
}

fn main() {}