1 warning: some fields are not explicitly listed
2 --> $DIR/stable-omitted-patterns.rs:39:9
4 LL | let UnstableStruct { stable, .. } = UnstableStruct::default();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `stable2` not listed
7 note: the lint level is defined here
8 --> $DIR/stable-omitted-patterns.rs:38:12
10 LL | #[warn(non_exhaustive_omitted_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
13 = note: the pattern is of type `UnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
15 error: some variants are not matched explicitly
16 --> $DIR/stable-omitted-patterns.rs:23:9
19 | ^ pattern `Stable2` not covered
21 note: the lint level is defined here
22 --> $DIR/stable-omitted-patterns.rs:22:16
24 LL | #[deny(non_exhaustive_omitted_patterns)]
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 = help: ensure that all variants are matched explicitly by adding the suggested match arms
27 = note: the matched value is of type `UnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
29 error: aborting due to previous error; 1 warning emitted