1 // ignore-pretty pretty-printing is unhygienic
3 #![feature(decl_macro)]
9 pub macro m($S:ident, $x:ident) {{
15 let s = S { x: 0 }; //~ ERROR type `foo::S` is private
16 let _ = s.x; //~ ERROR type `foo::S` is private
18 let t = T(0); //~ ERROR type `T` is private
19 let _ = t.0; //~ ERROR type `T` is private
21 let s = $S { $x: 0, x: 1 };
22 assert_eq!((s.$x, s.x), (0, 1));
28 let s = foo::m!(S, x);