diff options
Diffstat (limited to 'tests/ui/numbers-arithmetic/location-divide-assign-by-zero.rs')
-rw-r--r-- | tests/ui/numbers-arithmetic/location-divide-assign-by-zero.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/numbers-arithmetic/location-divide-assign-by-zero.rs b/tests/ui/numbers-arithmetic/location-divide-assign-by-zero.rs new file mode 100644 index 000000000..21b5e7a81 --- /dev/null +++ b/tests/ui/numbers-arithmetic/location-divide-assign-by-zero.rs @@ -0,0 +1,8 @@ +// run-fail +// ignore-wasm32 +// error-pattern:location-divide-assign-by-zero.rs + +fn main() { + let mut a = 1; + a /= &0; +} |