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

7 lines
90 B
Rust
Raw Normal View History

//@ run-fail
//@ error-pattern:location-mod-by-zero.rs
2023-11-24 00:54:06 +08:00
fn main() {
let _ = 1 % &0;
}