blob: f92dad961d1344b7b713338b639637ffa6791c3e [file]
enum test {
div_zero = 1/0, //~ERROR expected constant: attempted to divide by zero
rem_zero = 1%0 //~ERROR expected constant: attempted remainder with a divisor of zero
}
fn main() {}