Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
shift_overflow.rs
blob: e843584b69bb57c34ccf956843ee9b3c38de7c05 [
file
] [
log
] [
blame
]
enum
Foo
{
// test that we detect overflows for non-u32 discriminants
X
=
1
<<
((
u32
::
MAX
as
u64
)
+
1
),
//~ ERROR E0080
Y
=
42
,
}
fn
main
()
{
}