fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
863 B32 linesraw
1error: attempt to shift left with overflow
2  --> $DIR/lint-exceeding-bitshifts2.rs:9:15
3   |
4LL |       let n = 1u8 << (4+4);
5   |               ^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/lint-exceeding-bitshifts2.rs:3:9
9   |
10LL | #![deny(exceeding_bitshifts, const_err)]
11   |         ^^^^^^^^^^^^^^^^^^^
12
13error: attempt to shift right with overflow
14  --> $DIR/lint-exceeding-bitshifts2.rs:11:15
15   |
16LL |       let n = 1i64 >> [64][0];
17   |               ^^^^^^^^^^^^^^^
18
19error: attempt to shift left with overflow
20  --> $DIR/lint-exceeding-bitshifts2.rs:17:15
21   |
22LL |       let n = 1_isize << BITS;
23   |               ^^^^^^^^^^^^^^^
24
25error: attempt to shift left with overflow
26  --> $DIR/lint-exceeding-bitshifts2.rs:18:15
27   |
28LL |       let n = 1_usize << BITS;
29   |               ^^^^^^^^^^^^^^^
30
31error: aborting due to 4 previous errors
32