]> git.proxmox.com Git - rustc.git/blame - src/test/ui/union/union-copy.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / union / union-copy.rs
CommitLineData
9e0c209e
SL
1#[derive(Clone)]
2union U {
3 a: u8
54a0048b 4}
223e47cc 5
9e0c209e
SL
6#[derive(Clone)]
7union W {
29967ef6 8 a: std::mem::ManuallyDrop<String>
223e47cc 9}
9e0c209e
SL
10
11impl Copy for U {} // OK
12impl Copy for W {} //~ ERROR the trait `Copy` may not be implemented for this type
13
14fn main() {}