about summary refs log tree commit diff
path: root/src/test/ui/union/union-unsized.rs
blob: 16f2a73d42570a70f21de7107addbb6390a7d83d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(untagged_unions)]

union U {
    a: str,
    //~^ ERROR the size for values of type

    b: u8,
}

union W {
    a: u8,
    b: str,
    //~^ ERROR the size for values of type
}

fn main() {}