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