| error: attempt to shift left with overflow |
| --> $DIR/lint-exceeding-bitshifts2.rs:9:15 |
| | |
| LL | let n = 1u8 << (4+4); |
| | ^^^^^^^^^^^^ |
| | |
| note: lint level defined here |
| --> $DIR/lint-exceeding-bitshifts2.rs:3:9 |
| | |
| LL | #![deny(exceeding_bitshifts, const_err)] |
| | ^^^^^^^^^^^^^^^^^^^ |
| |
| error: attempt to shift right with overflow |
| --> $DIR/lint-exceeding-bitshifts2.rs:11:15 |
| | |
| LL | let n = 1i64 >> [64][0]; |
| | ^^^^^^^^^^^^^^^ |
| |
| error: attempt to shift left with overflow |
| --> $DIR/lint-exceeding-bitshifts2.rs:17:15 |
| | |
| LL | let n = 1_isize << BITS; |
| | ^^^^^^^^^^^^^^^ |
| |
| error: attempt to shift left with overflow |
| --> $DIR/lint-exceeding-bitshifts2.rs:18:15 |
| | |
| LL | let n = 1_usize << BITS; |
| | ^^^^^^^^^^^^^^^ |
| |
| error: aborting due to 4 previous errors |
| |