1 error: attempt to shift left with overflow
2 --> $DIR/lint-exceeding-bitshifts.rs:17:15
4 LL | let n = 1u8 << 8; //~ ERROR: attempt to shift left with overflow
7 note: lint level defined here
8 --> $DIR/lint-exceeding-bitshifts.rs:11:9
10 LL | #![deny(exceeding_bitshifts, const_err)]
13 error: attempt to shift left with overflow
14 --> $DIR/lint-exceeding-bitshifts.rs:19:15
16 LL | let n = 1u16 << 16; //~ ERROR: attempt to shift left with overflow
19 error: attempt to shift left with overflow
20 --> $DIR/lint-exceeding-bitshifts.rs:21:15
22 LL | let n = 1u32 << 32; //~ ERROR: attempt to shift left with overflow
25 error: attempt to shift left with overflow
26 --> $DIR/lint-exceeding-bitshifts.rs:23:15
28 LL | let n = 1u64 << 64; //~ ERROR: attempt to shift left with overflow
31 error: attempt to shift left with overflow
32 --> $DIR/lint-exceeding-bitshifts.rs:25:15
34 LL | let n = 1i8 << 8; //~ ERROR: attempt to shift left with overflow
37 error: attempt to shift left with overflow
38 --> $DIR/lint-exceeding-bitshifts.rs:27:15
40 LL | let n = 1i16 << 16; //~ ERROR: attempt to shift left with overflow
43 error: attempt to shift left with overflow
44 --> $DIR/lint-exceeding-bitshifts.rs:29:15
46 LL | let n = 1i32 << 32; //~ ERROR: attempt to shift left with overflow
49 error: attempt to shift left with overflow
50 --> $DIR/lint-exceeding-bitshifts.rs:31:15
52 LL | let n = 1i64 << 64; //~ ERROR: attempt to shift left with overflow
55 error: attempt to shift right with overflow
56 --> $DIR/lint-exceeding-bitshifts.rs:34:15
58 LL | let n = 1u8 >> 8; //~ ERROR: attempt to shift right with overflow
61 error: attempt to shift right with overflow
62 --> $DIR/lint-exceeding-bitshifts.rs:36:15
64 LL | let n = 1u16 >> 16; //~ ERROR: attempt to shift right with overflow
67 error: attempt to shift right with overflow
68 --> $DIR/lint-exceeding-bitshifts.rs:38:15
70 LL | let n = 1u32 >> 32; //~ ERROR: attempt to shift right with overflow
73 error: attempt to shift right with overflow
74 --> $DIR/lint-exceeding-bitshifts.rs:40:15
76 LL | let n = 1u64 >> 64; //~ ERROR: attempt to shift right with overflow
79 error: attempt to shift right with overflow
80 --> $DIR/lint-exceeding-bitshifts.rs:42:15
82 LL | let n = 1i8 >> 8; //~ ERROR: attempt to shift right with overflow
85 error: attempt to shift right with overflow
86 --> $DIR/lint-exceeding-bitshifts.rs:44:15
88 LL | let n = 1i16 >> 16; //~ ERROR: attempt to shift right with overflow
91 error: attempt to shift right with overflow
92 --> $DIR/lint-exceeding-bitshifts.rs:46:15
94 LL | let n = 1i32 >> 32; //~ ERROR: attempt to shift right with overflow
97 error: attempt to shift right with overflow
98 --> $DIR/lint-exceeding-bitshifts.rs:48:15
100 LL | let n = 1i64 >> 64; //~ ERROR: attempt to shift right with overflow
103 error: attempt to shift left with overflow
104 --> $DIR/lint-exceeding-bitshifts.rs:52:15
106 LL | let n = n << 8; //~ ERROR: attempt to shift left with overflow
109 error: attempt to shift left with overflow
110 --> $DIR/lint-exceeding-bitshifts.rs:54:15
112 LL | let n = 1u8 << -8; //~ ERROR: attempt to shift left with overflow
115 error: aborting due to 18 previous errors