]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-copy.rs
Auto merge of #62766 - alexcrichton:stabilize-pipelined-compilation, r=oli-obk
[rust.git] / src / test / ui / union / union-copy.rs
1 #![feature(untagged_unions)]
2
3 #[derive(Clone)]
4 union U {
5     a: u8
6 }
7
8 #[derive(Clone)]
9 union W {
10     a: String
11 }
12
13 impl Copy for U {} // OK
14 impl Copy for W {} //~ ERROR the trait `Copy` may not be implemented for this type
15
16 fn main() {}