]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/issue-47311.rs
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / issue-47311.rs
1 // check-pass
2 // ignore-pretty pretty-printing is unhygienic
3
4 #![feature(decl_macro)]
5 #![allow(unused)]
6
7 macro m($S:ident, $x:ident) {
8     $S { $x: 0 }
9 }
10
11 mod foo {
12     struct S { x: i32 }
13
14     fn f() { ::m!(S, x); }
15 }
16
17 fn main() {}