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