2020-04-16 15:50:32 +09:00
|
|
|
// run-fail
|
2016-08-04 07:31:06 +05:30
|
|
|
// error-pattern:attempt to calculate the remainder with a divisor of zero
|
2020-05-08 00:39:02 +09:00
|
|
|
// ignore-emscripten no processes
|
|
|
|
|
2020-04-23 12:25:28 -04:00
|
|
|
#[allow(unconditional_panic)]
|
2012-06-14 15:32:20 -07:00
|
|
|
fn main() {
|
2015-01-25 22:05:03 +01:00
|
|
|
let y = 0;
|
|
|
|
let _z = 1 % y;
|
2012-06-14 15:32:20 -07:00
|
|
|
}
|