]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.stderr
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / stable-omitted-patterns.stderr
1 warning: some fields are not explicitly listed
2   --> $DIR/stable-omitted-patterns.rs:39:9
3    |
4 LL |     let UnstableStruct { stable, .. } = UnstableStruct::default();
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `stable2` not listed
6    |
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
11    |
12 LL |     #[warn(non_exhaustive_omitted_patterns)]
13    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: some variants are not matched explicitly
16   --> $DIR/stable-omitted-patterns.rs:23:9
17    |
18 LL |         _ => {}
19    |         ^ pattern `UnstableEnum::Stable2` not covered
20    |
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
25    |
26 LL |         #[deny(non_exhaustive_omitted_patterns)]
27    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29 error: aborting due to previous error; 1 warning emitted
30