diff options
| author | Ralf Jung <post@ralfj.de> | 2024-01-05 18:49:25 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-01-05 18:49:25 +0100 |
| commit | 97c82385114dfb8aa30b0fd63aa06c201aeb65d9 (patch) | |
| tree | d2d3e6a1af77e7c64ac9df09a7fd23eef6e6dda8 /tests/ui/numbers-arithmetic | |
| parent | 432fffa8afb8fcfe658e6548e5e8f10ad2001329 (diff) | |
| download | rust-97c82385114dfb8aa30b0fd63aa06c201aeb65d9.tar.gz rust-97c82385114dfb8aa30b0fd63aa06c201aeb65d9.zip | |
remove duplicate test
Diffstat (limited to 'tests/ui/numbers-arithmetic')
| -rw-r--r-- | tests/ui/numbers-arithmetic/overflowing-rsh-6.rs | 9 | ||||
| -rw-r--r-- | tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr | 14 |
2 files changed, 0 insertions, 23 deletions
diff --git a/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs deleted file mode 100644 index f75e779ed15..00000000000 --- a/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs +++ /dev/null @@ -1,9 +0,0 @@ -// build-fail -// compile-flags: -C debug-assertions - -#![deny(arithmetic_overflow)] - -fn main() { - let _n = 1i64 >> [64][0]; - //~^ ERROR: this arithmetic operation will overflow -} diff --git a/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr deleted file mode 100644 index 005f7378226..00000000000 --- a/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error: this arithmetic operation will overflow - --> $DIR/overflowing-rsh-6.rs:7:14 - | -LL | let _n = 1i64 >> [64][0]; - | ^^^^^^^^^^^^^^^ attempt to shift right by `64_i32`, which would overflow - | -note: the lint level is defined here - --> $DIR/overflowing-rsh-6.rs:4:9 - | -LL | #![deny(arithmetic_overflow)] - | ^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 1 previous error - |
