2016-08-04 02:01:06 +00:00
|
|
|
// error-pattern:attempt to calculate the remainder with a divisor of zero
|
2016-03-10 19:20:09 +00:00
|
|
|
|
2012-06-14 22:32:20 +00:00
|
|
|
fn main() {
|
2015-01-25 21:05:03 +00:00
|
|
|
let y = 0;
|
|
|
|
let _z = 1 % y;
|
2012-06-14 22:32:20 +00:00
|
|
|
}
|