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