remove duplicate test
This commit is contained in:
parent
432fffa8af
commit
97c8238511
2 changed files with 0 additions and 23 deletions
|
@ -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
|
||||
}
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue