]>
Commit | Line | Data |
---|---|---|
0531ce1d XL |
1 | enum Test { |
2 | DivZero = 1/0, | |
f035d41b | 3 | //~^ attempt to divide 1_isize by zero |
a1dfa0c6 | 4 | //~| ERROR evaluation of constant value failed |
0531ce1d | 5 | RemZero = 1%0, |
f035d41b | 6 | //~^ attempt to calculate the remainder of 1_isize with a divisor of zero |
a1dfa0c6 | 7 | //~| ERROR evaluation of constant value failed |
223e47cc LB |
8 | } |
9 | ||
10 | fn main() {} |