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