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.

68 lines
2.5 KiB
Plaintext
Raw Normal View History

error[E0381]: binding `**x` isn't initialized
--> $DIR/borrowck-uninit-ref-chain.rs:8:14
2018-08-08 07:28:26 -05:00
|
LL | let x: &&Box<i32>;
| - variable declared here
LL | let _y = &**x;
| ^^^^ `**x` borrowed here but it isn't initialized
2018-08-08 07:28:26 -05:00
error[E0381]: binding `**x` isn't initialized
--> $DIR/borrowck-uninit-ref-chain.rs:11:14
2018-08-08 07:28:26 -05:00
|
LL | let x: &&S<i32, i32>;
| - variable declared here
LL | let _y = &**x;
| ^^^^ `**x` borrowed here but it isn't initialized
2018-08-08 07:28:26 -05:00
error[E0381]: binding `**x` isn't initialized
--> $DIR/borrowck-uninit-ref-chain.rs:14:14
2018-08-08 07:28:26 -05:00
|
LL | let x: &&i32;
| - variable declared here
LL | let _y = &**x;
| ^^^^ `**x` borrowed here but it isn't initialized
2018-08-08 07:28:26 -05:00
error[E0381]: binding `a` isn't fully initialized
--> $DIR/borrowck-uninit-ref-chain.rs:18:5
2018-08-08 07:28:26 -05:00
|
LL | let mut a: S<i32, i32>;
| ----- variable declared here
LL | a.x = 0;
| ^^^^^^^ `a` partially assigned here but it isn't fully initialized
|
= help: partial initialization isn't supported, fully initialize the binding with a default value and mutate, or use `std::mem::MaybeUninit`
2018-08-08 07:28:26 -05:00
error[E0381]: binding `a` isn't fully initialized
--> $DIR/borrowck-uninit-ref-chain.rs:22:5
2018-08-08 07:28:26 -05:00
|
LL | let mut a: S<&&i32, &&i32>;
| ----- variable declared here
LL | a.x = &&0;
| ^^^^^^^^^ `a` partially assigned here but it isn't fully initialized
|
= help: partial initialization isn't supported, fully initialize the binding with a default value and mutate, or use `std::mem::MaybeUninit`
2018-08-08 07:28:26 -05:00
error[E0381]: binding `a` isn't fully initialized
--> $DIR/borrowck-uninit-ref-chain.rs:27:5
2018-10-16 10:08:59 -05:00
|
LL | let mut a: S<i32, i32>;
| ----- variable declared here
LL | a.x = 0;
| ^^^^^^^ `a` partially assigned here but it isn't fully initialized
|
= help: partial initialization isn't supported, fully initialize the binding with a default value and mutate, or use `std::mem::MaybeUninit`
2018-10-16 10:08:59 -05:00
error[E0381]: binding `a` isn't fully initialized
--> $DIR/borrowck-uninit-ref-chain.rs:31:5
2018-10-16 10:08:59 -05:00
|
LL | let mut a: S<&&i32, &&i32>;
| ----- variable declared here
LL | a.x = &&0;
| ^^^^^^^^^ `a` partially assigned here but it isn't fully initialized
|
= help: partial initialization isn't supported, fully initialize the binding with a default value and mutate, or use `std::mem::MaybeUninit`
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`.