Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
consts
/
const-err4.rs
blob: 107dc3f8234f333c9c23fcabd63852184ddcce2c [
file
] [
log
] [
blame
]
// stderr-per-bitwidth
#[
derive
(
Copy
,
Clone
)]
union
Foo
{
a
:
isize
,
b
:
(),
}
enum
Bar
{
Boo
=
[
unsafe
{
Foo
{
b
:
()
}.
a
};
4
][
3
],
//~^ ERROR evaluation of constant value failed
//~| uninitialized
}
fn
main
()
{
assert_ne
!(
Bar
::
Boo
as
isize
,
0
);
}