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

46 lines
2.0 KiB
Plaintext
Raw Normal View History

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
|
LL | let _y = &**x; //[ast]~ ERROR use of possibly uninitialized variable: `**x` [E0381]
| ^^^^ 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
|
LL | let _y = &**x; //[ast]~ ERROR use of possibly uninitialized variable: `**x` [E0381]
| ^^^^ 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
|
LL | let _y = &**x; //[ast]~ ERROR use of possibly uninitialized variable: `**x` [E0381]
| ^^^^ 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
|
2018-10-16 10:08:59 -05:00
LL | a.x = 0; //[mir]~ ERROR assign to part of possibly uninitialized variable: `a` [E0381]
| ^^^^^^^ 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
|
2018-10-16 10:08:59 -05:00
LL | a.x = &&0; //[mir]~ ERROR assign to part of possibly uninitialized variable: `a` [E0381]
| ^^^^^^^^^ 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
|
LL | a.x = 0; //[mir]~ ERROR assign to part of possibly uninitialized variable: `a` [E0381]
| ^^^^^^^ 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
|
LL | a.x = &&0; //[mir]~ assign to part of possibly uninitialized variable: `a` [E0381]
| ^^^^^^^^^ 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`.