blob: ae0296bd4c092600e06c877f1f6ebf6f86d2505c (
plain)
1
2
3
4
5
6
7
8
|
enum Test {
DivZero = 1 / 0,
//~^ ERROR attempt to divide `1_isize` by zero
RemZero = 1 % 0,
//~^ ERROR attempt to calculate the remainder of `1_isize` with a divisor of zero
}
fn main() {}
|