2018-01-16 02:31:48 -06:00
|
|
|
enum Test {
|
|
|
|
DivZero = 1/0,
|
|
|
|
//~^ attempt to divide by zero
|
2018-08-26 08:19:34 -05:00
|
|
|
//~| ERROR evaluation of constant value failed
|
2018-01-16 02:31:48 -06:00
|
|
|
RemZero = 1%0,
|
|
|
|
//~^ attempt to calculate the remainder with a divisor of zero
|
2018-08-26 08:19:34 -05:00
|
|
|
//~| ERROR evaluation of constant value failed
|
2013-01-23 00:07:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|