]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-54379.stderr
Rollup merge of #57418 - lqd:collector_query, r=michaelwoerister
[rust.git] / src / test / ui / resolve / issue-54379.stderr
1 error: expected `}`, found `,`
2   --> $DIR/issue-54379.rs:9:22
3    |
4 LL |         MyStruct { .., Some(_) } => {}, //~ ERROR pattern does not mention field `s1`
5    |                    --^
6    |                    | |
7    |                    | expected `}`
8    |                    `..` must be at the end and cannot have a trailing comma
9
10 error: expected `,`
11   --> $DIR/issue-54379.rs:9:24
12    |
13 LL |         MyStruct { .., Some(_) } => {}, //~ ERROR pattern does not mention field `s1`
14    |                        ^^^^
15
16 error[E0027]: pattern does not mention field `s1`
17   --> $DIR/issue-54379.rs:9:9
18    |
19 LL |         MyStruct { .., Some(_) } => {}, //~ ERROR pattern does not mention field `s1`
20    |         ^^^^^^^^^^^^^^^^^^^^^^^^ missing field `s1`
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0027`.