fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.4 KiB45 linesraw
1error[E0381]: borrow of possibly-uninitialized variable: `x`
2  --> $DIR/borrowck-uninit-ref-chain.rs:8:14
3   |
4LL |     let _y = &**x;
5   |              ^^^^ use of possibly-uninitialized `**x`
6
7error[E0381]: borrow of possibly-uninitialized variable: `x`
8  --> $DIR/borrowck-uninit-ref-chain.rs:11:14
9   |
10LL |     let _y = &**x;
11   |              ^^^^ use of possibly-uninitialized `**x`
12
13error[E0381]: borrow of possibly-uninitialized variable: `x`
14  --> $DIR/borrowck-uninit-ref-chain.rs:14:14
15   |
16LL |     let _y = &**x;
17   |              ^^^^ use of possibly-uninitialized `**x`
18
19error[E0381]: assign to part of possibly-uninitialized variable: `a`
20  --> $DIR/borrowck-uninit-ref-chain.rs:18:5
21   |
22LL |     a.x = 0;
23   |     ^^^^^^^ use of possibly-uninitialized `a`
24
25error[E0381]: assign to part of possibly-uninitialized variable: `a`
26  --> $DIR/borrowck-uninit-ref-chain.rs:22:5
27   |
28LL |     a.x = &&0;
29   |     ^^^^^^^^^ use of possibly-uninitialized `a`
30
31error[E0381]: assign to part of possibly-uninitialized variable: `a`
32  --> $DIR/borrowck-uninit-ref-chain.rs:27:5
33   |
34LL |     a.x = 0;
35   |     ^^^^^^^ use of possibly-uninitialized `a`
36
37error[E0381]: assign to part of possibly-uninitialized variable: `a`
38  --> $DIR/borrowck-uninit-ref-chain.rs:31:5
39   |
40LL |     a.x = &&0;
41   |     ^^^^^^^^^ use of possibly-uninitialized `a`
42
43error: aborting due to 7 previous errors
44
45For more information about this error, try `rustc --explain E0381`.