2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2016-08-03 21:01:06 -05:00
|
|
|
// error-pattern:attempt to divide by zero
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
|
|
|
|
2020-04-23 11:25:28 -05:00
|
|
|
#[allow(unconditional_panic)]
|
2012-06-14 17:32:20 -05:00
|
|
|
fn main() {
|
2015-01-25 15:05:03 -06:00
|
|
|
let y = 0;
|
|
|
|
let _z = 1 / y;
|
2012-06-14 17:32:20 -05:00
|
|
|
}
|