]> git.proxmox.com Git - rustc.git/blame - tests/ui/hygiene/issue-47312.rs
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / ui / hygiene / issue-47312.rs
CommitLineData
416331ca 1// check-pass
0531ce1d
XL
2
3#![feature(decl_macro)]
4#![allow(unused)]
5
041b39d2 6mod foo {
0531ce1d
XL
7 pub macro m($s:tt, $i:tt) {
8 $s.$i
9 }
041b39d2
XL
10}
11
12mod bar {
0531ce1d
XL
13 struct S(i32);
14 fn f() {
15 let s = S(0);
16 ::foo::m!(s, 0);
476ff2be
SL
17 }
18}
041b39d2 19
0531ce1d 20fn main() {}