fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: pattern requires `..` due to inaccessible fields 2 --> $DIR/doc-hidden-fields.rs:15:9 3 | 4LL | let HiddenStruct { one, two } = HiddenStruct::default(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7help: ignore the inaccessible and unused fields 8 | 9LL | let HiddenStruct { one, two, .. } = HiddenStruct::default(); 10 | ++++ 11 12error[E0027]: pattern does not mention field `two` and inaccessible fields 13 --> $DIR/doc-hidden-fields.rs:18:9 14 | 15LL | let HiddenStruct { one } = HiddenStruct::default(); 16 | ^^^^^^^^^^^^^^^^^^^^ missing field `two` and inaccessible fields 17 | 18help: include the missing field in the pattern and ignore the inaccessible fields 19 | 20LL | let HiddenStruct { one, two, .. } = HiddenStruct::default(); 21 | ~~~~~~~~~~~ 22help: if you don't care about this missing field, you can explicitly ignore it 23 | 24LL | let HiddenStruct { one, .. } = HiddenStruct::default(); 25 | ~~~~~~ 26 27error[E0027]: pattern does not mention field `two` 28 --> $DIR/doc-hidden-fields.rs:21:9 29 | 30LL | let HiddenStruct { one, hide } = HiddenStruct::default(); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `two` 32 | 33help: include the missing field in the pattern 34 | 35LL | let HiddenStruct { one, hide, two } = HiddenStruct::default(); 36 | ~~~~~~~ 37help: if you don't care about this missing field, you can explicitly ignore it 38 | 39LL | let HiddenStruct { one, hide, .. } = HiddenStruct::default(); 40 | ~~~~~~ 41 42error[E0027]: pattern does not mention field `im_hidden` 43 --> $DIR/doc-hidden-fields.rs:24:9 44 | 45LL | let InCrate { a, b } = InCrate { a: 0, b: false, im_hidden: 0 }; 46 | ^^^^^^^^^^^^^^^^ missing field `im_hidden` 47 | 48help: include the missing field in the pattern 49 | 50LL | let InCrate { a, b, im_hidden } = InCrate { a: 0, b: false, im_hidden: 0 }; 51 | ~~~~~~~~~~~~~ 52help: if you don't care about this missing field, you can explicitly ignore it 53 | 54LL | let InCrate { a, b, .. } = InCrate { a: 0, b: false, im_hidden: 0 }; 55 | ~~~~~~ 56 57error: aborting due to 4 previous errors 58 59For more information about this error, try `rustc --explain E0027`.