Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
union
/
union-copy.rs
blob: 7ad0a11c6ac6e99e933218ecf491c252bf620a3e [
file
] [
log
] [
blame
]
#[
derive
(
Clone
)]
union U
{
a
:
u8
}
#[
derive
(
Clone
)]
union W
{
a
:
std
::
mem
::
ManuallyDrop
<
String
>
}
impl
Copy
for
U
{}
// OK
impl
Copy
for
W
{}
//~ ERROR the trait `Copy` cannot be implemented for this type
fn
main
()
{}