1 // aux-build:unstable.rs
5 use unstable::UnstableStruct;
8 let UnstableStruct { stable } = UnstableStruct::default();
9 //~^ pattern does not mention field `stable2` and inaccessible fields
11 let UnstableStruct { stable, stable2 } = UnstableStruct::default();
12 //~^ pattern requires `..` due to inaccessible fields
14 // OK: stable field is matched
15 let UnstableStruct { stable, stable2, .. } = UnstableStruct::default();