]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/mod-zero.rs
Auto merge of #68506 - tmandry:rollup-kz9d33v, r=tmandry
[rust.git] / src / test / run-fail / mod-zero.rs
1 // error-pattern:attempt to calculate the remainder with a divisor of zero
2
3 fn main() {
4     let y = 0;
5     let _z = 1 % y;
6 }