fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB30 linesraw
1warning: some fields are not explicitly listed
2  --> $DIR/stable-omitted-patterns.rs:39:9
3   |
4LL |     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
9note: the lint level is defined here
10  --> $DIR/stable-omitted-patterns.rs:38:12
11   |
12LL |     #[warn(non_exhaustive_omitted_patterns)]
13   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: some variants are not matched explicitly
16  --> $DIR/stable-omitted-patterns.rs:23:9
17   |
18LL |         _ => {}
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
23note: the lint level is defined here
24  --> $DIR/stable-omitted-patterns.rs:22:16
25   |
26LL |         #[deny(non_exhaustive_omitted_patterns)]
27   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
29error: aborting due to previous error; 1 warning emitted
30