summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-nonrepresentable.rs
blob: 4bdf7c6872fa5183f3eb4da6666db8fe778c642e (plain)
1
2
3
4
5
6
union U { //~ ERROR recursive type `U` has infinite size
    a: u8,
    b: std::mem::ManuallyDrop<U>,
}

fn main() {}