Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
consts
/
const-err4.rs
blob: 70d9bc149d8d83cc47ea4736d2779c11dd6f9f65 [
file
] [
log
] [
blame
]
#[
derive
(
Copy
,
Clone
)]
union
Foo
{
a
:
isize
,
b
:
(),
}
enum
Bar
{
Boo
=
[
unsafe
{
Foo
{
b
:
()
}.
a
};
4
][
3
],
//~^ ERROR it is undefined behavior to use this value
}
fn
main
()
{
assert_ne
!(
Bar
::
Boo
as
isize
,
0
);
}