]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
1 | error: this arithmetic operation will overflow |
2 | --> $DIR/overflowing-lsh-4.rs:11:13 | |
3 | | | |
4 | LL | let x = 1_i8 << 17; | |
1b1a35ee | 5 | | ^^^^^^^^^^ attempt to shift left by `17_i32`, which would overflow |
f9f354fc XL |
6 | | |
7 | note: the lint level is defined here | |
8 | --> $DIR/overflowing-lsh-4.rs:7:9 | |
9 | | | |
2b03887a | 10 | LL | #![deny(arithmetic_overflow)] |
f9f354fc XL |
11 | | ^^^^^^^^^^^^^^^^^^^ |
12 | ||
13 | error: aborting due to previous error | |
14 |