]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.stderr
parser will not give wrong help message for 'public'
[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 note: the lint level is defined here
8   --> $DIR/stable-omitted-patterns.rs:38:12
9    |
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
14
15 error: some variants are not matched explicitly
16   --> $DIR/stable-omitted-patterns.rs:23:9
17    |
18 LL |         _ => {}
19    |         ^ pattern `Stable2` not covered
20    |
21 note: the lint level is defined here
22   --> $DIR/stable-omitted-patterns.rs:22:16
23    |
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
28
29 error: aborting due to previous error; 1 warning emitted
30