blob: 551f10e66e35b4963bfb8966ca6f928d65e33124 [file] [log] [blame]
enum Test {
DivZero = 1/0,
//~^ attempt to divide `1_isize` by zero
//~| ERROR evaluation of constant value failed
RemZero = 1%0,
//~^ attempt to calculate the remainder of `1_isize` with a divisor of zero
//~| ERROR evaluation of constant value failed
}
fn main() {}