2016-08-04 07:31:06 +05:30
|
|
|
// error-pattern:attempt to calculate the remainder with a divisor of zero
|
2016-03-10 21:20:09 +02:00
|
|
|
|
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
|
|
|
}
|