Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
union
/
union-copy.rs
blob: 8318f96940e93ecffa054407ab17d8a3796ac6d0 [
file
] [
log
] [
blame
]
#![
feature
(
untagged_unions
)]
#[
derive
(
Clone
)]
union U
{
a
:
u8
}
#[
derive
(
Clone
)]
union W
{
a
:
String
}
impl
Copy
for
U
{}
// OK
impl
Copy
for
W
{}
//~ ERROR the trait `Copy` may not be implemented for this type
fn
main
()
{}