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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
127 B
Rust
Raw Normal View History

2023-11-23 16:54:06 +00:00
// run-fail
// ignore-wasm32
// error-pattern:location-divide-assign-by-zero.rs
fn main() {
let mut a = 1;
a /= &0;
}