rust/src/test/ui/borrowck/borrowck-uninit-ref-chain.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.4 KiB
Plaintext
Raw Normal View History

error[E0381]: borrow of possibly-uninitialized variable: `x`
--> $DIR/borrowck-uninit-ref-chain.rs:8:14
2018-08-08 07:28:26 -05:00
|
LL | let _y = &**x;
| ^^^^ use of possibly-uninitialized `**x`
2018-08-08 07:28:26 -05:00
error[E0381]: borrow of possibly-uninitialized variable: `x`
--> $DIR/borrowck-uninit-ref-chain.rs:11:14
2018-08-08 07:28:26 -05:00
|
LL | let _y = &**x;
| ^^^^ use of possibly-uninitialized `**x`
2018-08-08 07:28:26 -05:00
error[E0381]: borrow of possibly-uninitialized variable: `x`
--> $DIR/borrowck-uninit-ref-chain.rs:14:14
2018-08-08 07:28:26 -05:00
|
LL | let _y = &**x;
| ^^^^ use of possibly-uninitialized `**x`
2018-08-08 07:28:26 -05:00
error[E0381]: assign to part of possibly-uninitialized variable: `a`
--> $DIR/borrowck-uninit-ref-chain.rs:18:5
2018-08-08 07:28:26 -05:00
|
LL | a.x = 0;
| ^^^^^^^ use of possibly-uninitialized `a`
2018-08-08 07:28:26 -05:00
error[E0381]: assign to part of possibly-uninitialized variable: `a`
--> $DIR/borrowck-uninit-ref-chain.rs:22:5
2018-08-08 07:28:26 -05:00
|
LL | a.x = &&0;
| ^^^^^^^^^ use of possibly-uninitialized `a`
2018-08-08 07:28:26 -05:00
error[E0381]: assign to part of possibly-uninitialized variable: `a`
--> $DIR/borrowck-uninit-ref-chain.rs:27:5
2018-10-16 10:08:59 -05:00
|
LL | a.x = 0;
| ^^^^^^^ use of possibly-uninitialized `a`
2018-10-16 10:08:59 -05:00
error[E0381]: assign to part of possibly-uninitialized variable: `a`
--> $DIR/borrowck-uninit-ref-chain.rs:31:5
2018-10-16 10:08:59 -05:00
|
LL | a.x = &&0;
| ^^^^^^^^^ use of possibly-uninitialized `a`
2018-10-16 10:08:59 -05:00
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`.