fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error: this arithmetic operation will overflow 2 --> $DIR/lint-exceeding-bitshifts.rs:22:13 3 | 4LL | let _ = x << 42; 5 | ^^^^^^^ attempt to shift left with overflow 6 | 7note: the lint level is defined here 8 --> $DIR/lint-exceeding-bitshifts.rs:9:9 9 | 10LL | #![deny(arithmetic_overflow, const_err)] 11 | ^^^^^^^^^^^^^^^^^^^ 12 13error: this arithmetic operation will overflow 14 --> $DIR/lint-exceeding-bitshifts.rs:27:15 15 | 16LL | let n = 1u8 << 8; 17 | ^^^^^^^^ attempt to shift left with overflow 18 19error: this arithmetic operation will overflow 20 --> $DIR/lint-exceeding-bitshifts.rs:29:15 21 | 22LL | let n = 1u16 << 16; 23 | ^^^^^^^^^^ attempt to shift left with overflow 24 25error: this arithmetic operation will overflow 26 --> $DIR/lint-exceeding-bitshifts.rs:31:15 27 | 28LL | let n = 1u32 << 32; 29 | ^^^^^^^^^^ attempt to shift left with overflow 30 31error: this arithmetic operation will overflow 32 --> $DIR/lint-exceeding-bitshifts.rs:33:15 33 | 34LL | let n = 1u64 << 64; 35 | ^^^^^^^^^^ attempt to shift left with overflow 36 37error: this arithmetic operation will overflow 38 --> $DIR/lint-exceeding-bitshifts.rs:35:15 39 | 40LL | let n = 1i8 << 8; 41 | ^^^^^^^^ attempt to shift left with overflow 42 43error: this arithmetic operation will overflow 44 --> $DIR/lint-exceeding-bitshifts.rs:37:15 45 | 46LL | let n = 1i16 << 16; 47 | ^^^^^^^^^^ attempt to shift left with overflow 48 49error: this arithmetic operation will overflow 50 --> $DIR/lint-exceeding-bitshifts.rs:39:15 51 | 52LL | let n = 1i32 << 32; 53 | ^^^^^^^^^^ attempt to shift left with overflow 54 55error: this arithmetic operation will overflow 56 --> $DIR/lint-exceeding-bitshifts.rs:41:15 57 | 58LL | let n = 1i64 << 64; 59 | ^^^^^^^^^^ attempt to shift left with overflow 60 61error: this arithmetic operation will overflow 62 --> $DIR/lint-exceeding-bitshifts.rs:44:15 63 | 64LL | let n = 1u8 >> 8; 65 | ^^^^^^^^ attempt to shift right with overflow 66 67error: this arithmetic operation will overflow 68 --> $DIR/lint-exceeding-bitshifts.rs:46:15 69 | 70LL | let n = 1u16 >> 16; 71 | ^^^^^^^^^^ attempt to shift right with overflow 72 73error: this arithmetic operation will overflow 74 --> $DIR/lint-exceeding-bitshifts.rs:48:15 75 | 76LL | let n = 1u32 >> 32; 77 | ^^^^^^^^^^ attempt to shift right with overflow 78 79error: this arithmetic operation will overflow 80 --> $DIR/lint-exceeding-bitshifts.rs:50:15 81 | 82LL | let n = 1u64 >> 64; 83 | ^^^^^^^^^^ attempt to shift right with overflow 84 85error: this arithmetic operation will overflow 86 --> $DIR/lint-exceeding-bitshifts.rs:52:15 87 | 88LL | let n = 1i8 >> 8; 89 | ^^^^^^^^ attempt to shift right with overflow 90 91error: this arithmetic operation will overflow 92 --> $DIR/lint-exceeding-bitshifts.rs:54:15 93 | 94LL | let n = 1i16 >> 16; 95 | ^^^^^^^^^^ attempt to shift right with overflow 96 97error: this arithmetic operation will overflow 98 --> $DIR/lint-exceeding-bitshifts.rs:56:15 99 | 100LL | let n = 1i32 >> 32; 101 | ^^^^^^^^^^ attempt to shift right with overflow 102 103error: this arithmetic operation will overflow 104 --> $DIR/lint-exceeding-bitshifts.rs:58:15 105 | 106LL | let n = 1i64 >> 64; 107 | ^^^^^^^^^^ attempt to shift right with overflow 108 109error: this arithmetic operation will overflow 110 --> $DIR/lint-exceeding-bitshifts.rs:62:15 111 | 112LL | let n = n << 8; 113 | ^^^^^^ attempt to shift left with overflow 114 115error: this arithmetic operation will overflow 116 --> $DIR/lint-exceeding-bitshifts.rs:64:15 117 | 118LL | let n = 1u8 << -8; 119 | ^^^^^^^^^ attempt to shift left with overflow 120 121error: this arithmetic operation will overflow 122 --> $DIR/lint-exceeding-bitshifts.rs:69:15 123 | 124LL | let n = 1u8 << (4+4); 125 | ^^^^^^^^^^^^ attempt to shift left with overflow 126 127error: this arithmetic operation will overflow 128 --> $DIR/lint-exceeding-bitshifts.rs:71:15 129 | 130LL | let n = 1i64 >> [64][0]; 131 | ^^^^^^^^^^^^^^^ attempt to shift right with overflow 132 133error: this arithmetic operation will overflow 134 --> $DIR/lint-exceeding-bitshifts.rs:77:15 135 | 136LL | let n = 1_isize << BITS; 137 | ^^^^^^^^^^^^^^^ attempt to shift left with overflow 138 139error: this arithmetic operation will overflow 140 --> $DIR/lint-exceeding-bitshifts.rs:78:15 141 | 142LL | let n = 1_usize << BITS; 143 | ^^^^^^^^^^^^^^^ attempt to shift left with overflow 144 145error: aborting due to 23 previous errors 146