fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0027]: pattern does not mention field `stable2` and inaccessible fields 2 --> $DIR/stable-gated-fields.rs:8:9 3 | 4LL | let UnstableStruct { stable } = UnstableStruct::default(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `stable2` and inaccessible fields 6 | 7help: include the missing field in the pattern and ignore the inaccessible fields 8 | 9LL | let UnstableStruct { stable, stable2, .. } = UnstableStruct::default(); 10 | ~~~~~~~~~~~~~~~ 11help: if you don't care about this missing field, you can explicitly ignore it 12 | 13LL | let UnstableStruct { stable, .. } = UnstableStruct::default(); 14 | ~~~~~~ 15 16error: pattern requires `..` due to inaccessible fields 17 --> $DIR/stable-gated-fields.rs:11:9 18 | 19LL | let UnstableStruct { stable, stable2 } = UnstableStruct::default(); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21 | 22help: ignore the inaccessible and unused fields 23 | 24LL | let UnstableStruct { stable, stable2, .. } = UnstableStruct::default(); 25 | ++++ 26 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0027`.