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