summaryrefslogtreecommitdiffstats
path: root/tests/ui/repr/repr-transparent-other-items.rs
blob: e537e3e1a63656f11f5dd04ab6204f3ae913778e (plain)
1
2
3
4
5
6
7
8
9
// See also repr-transparent.rs

#[repr(transparent)] //~ ERROR should be applied to a struct
fn cant_repr_this() {}

#[repr(transparent)] //~ ERROR should be applied to a struct
static CANT_REPR_THIS: u32 = 0;

fn main() {}