fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.8 KiB63 linesraw
1error[E0381]: use of possibly-uninitialized variable: `x`
2  --> $DIR/borrowck-uninit-in-assignop.rs:6:5
3   |
4LL |     x += 1;
5   |     ^^^^^^ use of possibly-uninitialized `x`
6
7error[E0381]: use of possibly-uninitialized variable: `x`
8  --> $DIR/borrowck-uninit-in-assignop.rs:9:5
9   |
10LL |     x -= 1;
11   |     ^^^^^^ use of possibly-uninitialized `x`
12
13error[E0381]: use of possibly-uninitialized variable: `x`
14  --> $DIR/borrowck-uninit-in-assignop.rs:12:5
15   |
16LL |     x *= 1;
17   |     ^^^^^^ use of possibly-uninitialized `x`
18
19error[E0381]: use of possibly-uninitialized variable: `x`
20  --> $DIR/borrowck-uninit-in-assignop.rs:15:5
21   |
22LL |     x /= 1;
23   |     ^^^^^^ use of possibly-uninitialized `x`
24
25error[E0381]: use of possibly-uninitialized variable: `x`
26  --> $DIR/borrowck-uninit-in-assignop.rs:18:5
27   |
28LL |     x %= 1;
29   |     ^^^^^^ use of possibly-uninitialized `x`
30
31error[E0381]: use of possibly-uninitialized variable: `x`
32  --> $DIR/borrowck-uninit-in-assignop.rs:21:5
33   |
34LL |     x ^= 1;
35   |     ^^^^^^ use of possibly-uninitialized `x`
36
37error[E0381]: use of possibly-uninitialized variable: `x`
38  --> $DIR/borrowck-uninit-in-assignop.rs:24:5
39   |
40LL |     x &= 1;
41   |     ^^^^^^ use of possibly-uninitialized `x`
42
43error[E0381]: use of possibly-uninitialized variable: `x`
44  --> $DIR/borrowck-uninit-in-assignop.rs:27:5
45   |
46LL |     x |= 1;
47   |     ^^^^^^ use of possibly-uninitialized `x`
48
49error[E0381]: use of possibly-uninitialized variable: `x`
50  --> $DIR/borrowck-uninit-in-assignop.rs:30:5
51   |
52LL |     x <<= 1;
53   |     ^^^^^^^ use of possibly-uninitialized `x`
54
55error[E0381]: use of possibly-uninitialized variable: `x`
56  --> $DIR/borrowck-uninit-in-assignop.rs:33:5
57   |
58LL |     x >>= 1;
59   |     ^^^^^^^ use of possibly-uninitialized `x`
60
61error: aborting due to 10 previous errors
62
63For more information about this error, try `rustc --explain E0381`.