rust/tests/ui/numbers-arithmetic/location-mod-by-zero.rs

7 lines
90 B
Rust

//@ run-fail
//@ error-pattern:location-mod-by-zero.rs
fn main() {
let _ = 1 % &0;
}