2018-10-16 10:08:59 -05:00
|
|
|
error[E0381]: borrow of possibly uninitialized variable: `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:11:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | let _y = &**x;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^ use of possibly uninitialized `**x`
|
|
|
|
|
2018-10-16 10:08:59 -05:00
|
|
|
error[E0381]: borrow of possibly uninitialized variable: `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:15:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | let _y = &**x;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^ use of possibly uninitialized `**x`
|
|
|
|
|
2018-10-16 10:08:59 -05:00
|
|
|
error[E0381]: borrow of possibly uninitialized variable: `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:19:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | let _y = &**x;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^ use of possibly uninitialized `**x`
|
|
|
|
|
2018-10-16 10:08:59 -05:00
|
|
|
error[E0381]: assign to part of possibly uninitialized variable: `a`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:24:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | a.x = 0;
|
2018-10-16 10:08:59 -05:00
|
|
|
| ^^^^^^^ use of possibly uninitialized `a`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-10-16 10:08:59 -05:00
|
|
|
error[E0381]: assign to part of possibly uninitialized variable: `a`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:29:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | a.x = &&0;
|
2018-10-16 10:08:59 -05:00
|
|
|
| ^^^^^^^^^ use of possibly uninitialized `a`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-10-16 10:08:59 -05:00
|
|
|
error[E0381]: assign to part of possibly uninitialized variable: `a`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:35:5
|
2018-10-16 10:08:59 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | a.x = 0;
|
2018-10-16 10:08:59 -05:00
|
|
|
| ^^^^^^^ use of possibly uninitialized `a`
|
|
|
|
|
|
|
|
error[E0381]: assign to part of possibly uninitialized variable: `a`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-uninit-ref-chain.rs:40:5
|
2018-10-16 10:08:59 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | a.x = &&0;
|
2018-10-16 10:08:59 -05:00
|
|
|
| ^^^^^^^^^ use of possibly uninitialized `a`
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0381`.
|