blob: f92dad961d1344b7b713338b639637ffa6791c3e (
plain)
1
2
3
4
5
6
|
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() {}
|