fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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