1 #![feature(decl_macro, rustc_attrs)]
3 #[rustc_macro_transparency = "transparent"]
8 #[rustc_macro_transparency = "semitransparent"]
9 macro semitransparent() {
10 struct SemiTransparent;
11 let semitransparent = 0;
13 #[rustc_macro_transparency = "opaque"]
25 SemiTransparent; // OK
26 Opaque; //~ ERROR cannot find value `Opaque` in this scope
29 semitransparent; //~ ERROR expected value, found macro `semitransparent`
30 opaque; //~ ERROR expected value, found macro `opaque`