summary refs log tree commit diff
path: root/src/test/ui/union/union-nonrepresentable.rs
blob: 4dbd97ea957ba5241f28f62eff9ce9777a1fa234 (plain)
1
2
3
4
5
6
7
8
#![feature(untagged_unions)]

union U { //~ ERROR recursive type `U` has infinite size
    a: u8,
    b: U,
}

fn main() {}