fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
462 B15 linesraw
1error[E0451]: field `c` of union `m::U` is private
2  --> $DIR/union-field-privacy-1.rs:12:20
3   |
4LL |     let u = m::U { c: 0 };
5   |                    ^^^^ field `c` is private
6
7error[E0451]: field `c` of union `m::U` is private
8  --> $DIR/union-field-privacy-1.rs:16:16
9   |
10LL |     let m::U { c } = u;
11   |                ^ field `c` is private
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0451`.