2021-10-27 19:30:26 -05:00
|
|
|
warning: some fields are not explicitly listed
|
|
|
|
--> $DIR/stable-omitted-patterns.rs:39:9
|
|
|
|
|
|
|
|
|
LL | let UnstableStruct { stable, .. } = UnstableStruct::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `stable2` not listed
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
|
|
|
|
= note: the pattern is of type `UnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-10-27 19:30:26 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/stable-omitted-patterns.rs:38:12
|
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-09-18 15:52:43 -05:00
|
|
|
error: some variants are not matched explicitly
|
|
|
|
--> $DIR/stable-omitted-patterns.rs:23:9
|
|
|
|
|
|
|
|
|
LL | _ => {}
|
2022-09-02 22:01:35 -05:00
|
|
|
| ^ pattern `UnstableEnum::Stable2` not covered
|
2021-09-18 15:52:43 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: ensure that all variants are matched explicitly by adding the suggested match arms
|
|
|
|
= note: the matched value is of type `UnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
|
2021-09-18 15:52:43 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/stable-omitted-patterns.rs:22:16
|
|
|
|
|
|
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-10-27 19:30:26 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2021-09-18 15:52:43 -05:00
|
|
|
|