Sign in
fuchsia
/
third_party
/
rust
/
9f7b58f3c94708f344237f826b4f96a659b5fc82
/
.
/
src
/
test
/
ui
/
eval-enum.rs
blob: cf49b9614381788f4b9c6de30b04010fb4cc3ab6 [
file
] [
log
] [
blame
]
enum
Test
{
DivZero
=
1
/
0
,
//~^ attempt to divide by zero
//~| ERROR evaluation of constant value failed
RemZero
=
1
%
0
,
//~^ attempt to calculate the remainder with a divisor of zero
//~| ERROR evaluation of constant value failed
}
fn
main
()
{}