summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-unsized.rs
blob: 8e897d7d3c6d66b2a9c0be661ca2ec2ea64fb6ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// revisions: mirunsafeck thirunsafeck
// [thirunsafeck]compile-flags: -Z thir-unsafeck

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() {}