1 error[E0381]: used binding `x` isn't initialized
2 --> $DIR/borrowck-uninit-ref-chain.rs:8:14
4 LL | let x: &&Box<i32>;
5 | - binding declared here but left uninitialized
7 | ^^^^ `**x` used here but it isn't initialized
9 help: consider assigning a value
11 LL | let x: &&Box<i32> = todo!();
14 error[E0381]: used binding `x` isn't initialized
15 --> $DIR/borrowck-uninit-ref-chain.rs:11:14
17 LL | let x: &&S<i32, i32>;
18 | - binding declared here but left uninitialized
20 | ^^^^ `**x` used here but it isn't initialized
22 help: consider assigning a value
24 LL | let x: &&S<i32, i32> = todo!();
27 error[E0381]: used binding `x` isn't initialized
28 --> $DIR/borrowck-uninit-ref-chain.rs:14:14
31 | - binding declared here but left uninitialized
33 | ^^^^ `**x` used here but it isn't initialized
35 help: consider assigning a value
37 LL | let x: &&i32 = todo!();
40 error[E0381]: partially assigned binding `a` isn't fully initialized
41 --> $DIR/borrowck-uninit-ref-chain.rs:18:5
43 LL | let mut a: S<i32, i32>;
44 | ----- binding declared here but left uninitialized
46 | ^^^^^^^ `a` partially assigned here but it isn't fully initialized
48 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
50 error[E0381]: partially assigned binding `a` isn't fully initialized
51 --> $DIR/borrowck-uninit-ref-chain.rs:22:5
53 LL | let mut a: S<&&i32, &&i32>;
54 | ----- binding declared here but left uninitialized
56 | ^^^^^^^^^ `a` partially assigned here but it isn't fully initialized
58 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
60 error[E0381]: partially assigned binding `a` isn't fully initialized
61 --> $DIR/borrowck-uninit-ref-chain.rs:27:5
63 LL | let mut a: S<i32, i32>;
64 | ----- binding declared here but left uninitialized
66 | ^^^^^^^ `a` partially assigned here but it isn't fully initialized
68 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
70 error[E0381]: partially assigned binding `a` isn't fully initialized
71 --> $DIR/borrowck-uninit-ref-chain.rs:31:5
73 LL | let mut a: S<&&i32, &&i32>;
74 | ----- binding declared here but left uninitialized
76 | ^^^^^^^^^ `a` partially assigned here but it isn't fully initialized
78 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
80 error: aborting due to 7 previous errors
82 For more information about this error, try `rustc --explain E0381`.