fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: attempt to shift left with overflow 2 --> $DIR/lint-exceeding-bitshifts2.rs:7:15 3 | 4LL | let n = 1u8 << (4+4); 5 | ^^^^^^^^^^^^ 6 | 7note: lint level defined here 8 --> $DIR/lint-exceeding-bitshifts2.rs:1:9 9 | 10LL | #![deny(exceeding_bitshifts, const_err)] 11 | ^^^^^^^^^^^^^^^^^^^ 12 13error: attempt to shift left with overflow 14 --> $DIR/lint-exceeding-bitshifts2.rs:15:15 15 | 16LL | let n = 1_isize << BITS; 17 | ^^^^^^^^^^^^^^^ 18 19error: attempt to shift left with overflow 20 --> $DIR/lint-exceeding-bitshifts2.rs:16:15 21 | 22LL | let n = 1_usize << BITS; 23 | ^^^^^^^^^^^^^^^ 24 25error: aborting due to 3 previous errors 26