]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/overflowing-rsh-4.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / numbers-arithmetic / overflowing-rsh-4.stderr
1 error: this arithmetic operation will overflow
2   --> $DIR/overflowing-rsh-4.rs:11:13
3    |
4 LL |     let x = 2_i8 >> 17;
5    |             ^^^^^^^^^^ attempt to shift right by `17_i32`, which would overflow
6    |
7 note: the lint level is defined here
8   --> $DIR/overflowing-rsh-4.rs:7:9
9    |
10 LL | #![deny(arithmetic_overflow)]
11    |         ^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14