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