|
1 |
| -error[E0381]: borrow of possibly uninitialized variable: `**x` |
| 1 | +error[E0381]: borrow of possibly uninitialized variable: `x` |
2 | 2 | --> $DIR/borrowck-uninit-ref-chain.rs:21:14
|
3 | 3 | |
|
4 | 4 | LL | let _y = &**x; //[ast]~ ERROR use of possibly uninitialized variable: `**x` [E0381]
|
5 | 5 | | ^^^^ use of possibly uninitialized `**x`
|
6 | 6 |
|
7 |
| -error[E0381]: borrow of possibly uninitialized variable: `**x` |
| 7 | +error[E0381]: borrow of possibly uninitialized variable: `x` |
8 | 8 | --> $DIR/borrowck-uninit-ref-chain.rs:25:14
|
9 | 9 | |
|
10 | 10 | LL | let _y = &**x; //[ast]~ ERROR use of possibly uninitialized variable: `**x` [E0381]
|
11 | 11 | | ^^^^ use of possibly uninitialized `**x`
|
12 | 12 |
|
13 |
| -error[E0381]: borrow of possibly uninitialized variable: `**x` |
| 13 | +error[E0381]: borrow of possibly uninitialized variable: `x` |
14 | 14 | --> $DIR/borrowck-uninit-ref-chain.rs:29:14
|
15 | 15 | |
|
16 | 16 | LL | let _y = &**x; //[ast]~ ERROR use of possibly uninitialized variable: `**x` [E0381]
|
17 | 17 | | ^^^^ use of possibly uninitialized `**x`
|
18 | 18 |
|
19 |
| -error[E0381]: borrow of possibly uninitialized variable: `a.y` |
20 |
| - --> $DIR/borrowck-uninit-ref-chain.rs:46:14 |
| 19 | +error[E0381]: assign to part of possibly uninitialized variable: `a` |
| 20 | + --> $DIR/borrowck-uninit-ref-chain.rs:34:5 |
21 | 21 | |
|
22 |
| -LL | let _b = &a.y; //[ast]~ ERROR use of possibly uninitialized variable: `a.y` [E0381] |
23 |
| - | ^^^^ use of possibly uninitialized `a.y` |
| 22 | +LL | a.x = 0; //[mir]~ ERROR assign to part of possibly uninitialized variable: `a` [E0381] |
| 23 | + | ^^^^^^^ use of possibly uninitialized `a` |
24 | 24 |
|
25 |
| -error[E0381]: borrow of possibly uninitialized variable: `**a.y` |
26 |
| - --> $DIR/borrowck-uninit-ref-chain.rs:51:14 |
| 25 | +error[E0381]: assign to part of possibly uninitialized variable: `a` |
| 26 | + --> $DIR/borrowck-uninit-ref-chain.rs:39:5 |
27 | 27 | |
|
28 |
| -LL | let _b = &**a.y; //[ast]~ ERROR use of possibly uninitialized variable: `**a.y` [E0381] |
29 |
| - | ^^^^^^ use of possibly uninitialized `**a.y` |
| 28 | +LL | a.x = &&0; //[mir]~ ERROR assign to part of possibly uninitialized variable: `a` [E0381] |
| 29 | + | ^^^^^^^^^ use of possibly uninitialized `a` |
30 | 30 |
|
31 |
| -error: aborting due to 5 previous errors |
| 31 | +error[E0381]: assign to part of possibly uninitialized variable: `a` |
| 32 | + --> $DIR/borrowck-uninit-ref-chain.rs:45:5 |
| 33 | + | |
| 34 | +LL | a.x = 0; //[mir]~ ERROR assign to part of possibly uninitialized variable: `a` [E0381] |
| 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:50:5 |
| 39 | + | |
| 40 | +LL | a.x = &&0; //[mir]~ assign to part of possibly uninitialized variable: `a` [E0381] |
| 41 | + | ^^^^^^^^^ use of possibly uninitialized `a` |
| 42 | + |
| 43 | +error: aborting due to 7 previous errors |
32 | 44 |
|
33 | 45 | For more information about this error, try `rustc --explain E0381`.
|
0 commit comments