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