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