fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
510 B15 linesraw
1error[E0381]: assign to part of possibly-uninitialized variable: `s`
2  --> $DIR/borrowck-union-uninitialized.rs:13:9
3   |
4LL |         s.a = 0;
5   |         ^^^^^^^ use of possibly-uninitialized `s`
6
7error[E0381]: assign to part of possibly-uninitialized variable: `u`
8  --> $DIR/borrowck-union-uninitialized.rs:14:9
9   |
10LL |         u.a = 0;
11   |         ^^^^^^^ use of possibly-uninitialized `u`
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0381`.