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