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-bitshifts.rs:10:15 3 | 4LL | let n = 1u8 << 8; 5 | ^^^^^^^^ 6 | 7note: lint level defined here 8 --> $DIR/lint-exceeding-bitshifts.rs:4:9 9 | 10LL | #![deny(exceeding_bitshifts, const_err)] 11 | ^^^^^^^^^^^^^^^^^^^ 12 13error: attempt to shift left with overflow 14 --> $DIR/lint-exceeding-bitshifts.rs:12:15 15 | 16LL | let n = 1u16 << 16; 17 | ^^^^^^^^^^ 18 19error: attempt to shift left with overflow 20 --> $DIR/lint-exceeding-bitshifts.rs:14:15 21 | 22LL | let n = 1u32 << 32; 23 | ^^^^^^^^^^ 24 25error: attempt to shift left with overflow 26 --> $DIR/lint-exceeding-bitshifts.rs:16:15 27 | 28LL | let n = 1u64 << 64; 29 | ^^^^^^^^^^ 30 31error: attempt to shift left with overflow 32 --> $DIR/lint-exceeding-bitshifts.rs:18:15 33 | 34LL | let n = 1i8 << 8; 35 | ^^^^^^^^ 36 37error: attempt to shift left with overflow 38 --> $DIR/lint-exceeding-bitshifts.rs:20:15 39 | 40LL | let n = 1i16 << 16; 41 | ^^^^^^^^^^ 42 43error: attempt to shift left with overflow 44 --> $DIR/lint-exceeding-bitshifts.rs:22:15 45 | 46LL | let n = 1i32 << 32; 47 | ^^^^^^^^^^ 48 49error: attempt to shift left with overflow 50 --> $DIR/lint-exceeding-bitshifts.rs:24:15 51 | 52LL | let n = 1i64 << 64; 53 | ^^^^^^^^^^ 54 55error: attempt to shift right with overflow 56 --> $DIR/lint-exceeding-bitshifts.rs:27:15 57 | 58LL | let n = 1u8 >> 8; 59 | ^^^^^^^^ 60 61error: attempt to shift right with overflow 62 --> $DIR/lint-exceeding-bitshifts.rs:29:15 63 | 64LL | let n = 1u16 >> 16; 65 | ^^^^^^^^^^ 66 67error: attempt to shift right with overflow 68 --> $DIR/lint-exceeding-bitshifts.rs:31:15 69 | 70LL | let n = 1u32 >> 32; 71 | ^^^^^^^^^^ 72 73error: attempt to shift right with overflow 74 --> $DIR/lint-exceeding-bitshifts.rs:33:15 75 | 76LL | let n = 1u64 >> 64; 77 | ^^^^^^^^^^ 78 79error: attempt to shift right with overflow 80 --> $DIR/lint-exceeding-bitshifts.rs:35:15 81 | 82LL | let n = 1i8 >> 8; 83 | ^^^^^^^^ 84 85error: attempt to shift right with overflow 86 --> $DIR/lint-exceeding-bitshifts.rs:37:15 87 | 88LL | let n = 1i16 >> 16; 89 | ^^^^^^^^^^ 90 91error: attempt to shift right with overflow 92 --> $DIR/lint-exceeding-bitshifts.rs:39:15 93 | 94LL | let n = 1i32 >> 32; 95 | ^^^^^^^^^^ 96 97error: attempt to shift right with overflow 98 --> $DIR/lint-exceeding-bitshifts.rs:41:15 99 | 100LL | let n = 1i64 >> 64; 101 | ^^^^^^^^^^ 102 103error: attempt to shift left with overflow 104 --> $DIR/lint-exceeding-bitshifts.rs:45:15 105 | 106LL | let n = n << 8; 107 | ^^^^^^ 108 109error: attempt to shift left with overflow 110 --> $DIR/lint-exceeding-bitshifts.rs:47:15 111 | 112LL | let n = 1u8 << -8; 113 | ^^^^^^^^^ 114 115error: aborting due to 18 previous errors 116