fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0381]: partially assigned binding `s` isn't fully initialized 2 --> $DIR/borrowck-union-uninitialized.rs:13:9 3 | 4LL | let mut s: S; 5 | ----- binding declared here but left uninitialized 6LL | let mut u: U; 7LL | s.a = 0; 8 | ^^^^^^^ `s` partially assigned here but it isn't fully initialized 9 | 10 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit` 11 12error[E0381]: partially assigned binding `u` isn't fully initialized 13 --> $DIR/borrowck-union-uninitialized.rs:14:9 14 | 15LL | let mut u: U; 16 | ----- binding declared here but left uninitialized 17LL | s.a = 0; 18LL | u.a = 0; 19 | ^^^^^^^ `u` partially assigned here but it isn't fully initialized 20 | 21 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit` 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0381`.