2021-10-27 20:30:26 -04: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 19:55:36 +04: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 20:30:26 -04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/stable-omitted-patterns.rs:38:12
|
|
|
|
|
|
|
|
|
LL | #[warn(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-09-18 16:52:43 -04:00
|
|
|
error: some variants are not matched explicitly
|
2023-10-14 18:25:10 +02:00
|
|
|
--> $DIR/stable-omitted-patterns.rs:21:11
|
2021-09-18 16:52:43 -04:00
|
|
|
|
|
2023-10-14 18:25:10 +02:00
|
|
|
LL | match UnstableEnum::Stable {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ pattern `UnstableEnum::Stable2` not covered
|
2021-09-18 16:52:43 -04:00
|
|
|
|
|
2022-09-18 19:55:36 +04: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 16:52:43 -04:00
|
|
|
note: the lint level is defined here
|
2023-10-14 15:19:51 +02:00
|
|
|
--> $DIR/stable-omitted-patterns.rs:20:12
|
2021-09-18 16:52:43 -04:00
|
|
|
|
|
2023-10-14 15:19:51 +02:00
|
|
|
LL | #[deny(non_exhaustive_omitted_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-09-18 16:52:43 -04:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error; 1 warning emitted
|
2021-09-18 16:52:43 -04:00
|
|
|
|