Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
union
/
union-copy.rs
blob: 5c3f8d90898199ad9911a73886623b6eab1af339 [
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` may not be implemented for this type
fn
main
()
{}