]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-transparent-other-items.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / repr / repr-transparent-other-items.rs
1 // See also repr-transparent.rs
2
3 #[repr(transparent)] //~ ERROR should be applied to a struct
4 fn cant_repr_this() {}
5
6 #[repr(transparent)] //~ ERROR should be applied to a struct
7 static CANT_REPR_THIS: u32 = 0;
8
9 fn main() {}