]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[E0027]: pattern does not mention field `name` |
5869c6ff | 2 | --> $DIR/E0027.rs:11:9 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | Dog { age: x } => {} |
2c00a5a8 | 5 | | ^^^^^^^^^^^^^^ missing field `name` |
1b1a35ee XL |
6 | | |
7 | help: include the missing field in the pattern | |
8 | | | |
9 | LL | Dog { age: x, name } => {} | |
94222f64 | 10 | | ~~~~~~~~ |
29967ef6 | 11 | help: if you don't care about this missing field, you can explicitly ignore it |
1b1a35ee XL |
12 | | |
13 | LL | Dog { age: x, .. } => {} | |
94222f64 | 14 | | ~~~~~~ |
5869c6ff XL |
15 | |
16 | error[E0027]: pattern does not mention field `age` | |
17 | --> $DIR/E0027.rs:15:9 | |
18 | | | |
19 | LL | Dog { name: x, } => {} | |
20 | | ^^^^^^^^^^^^^^^^ missing field `age` | |
21 | | | |
22 | help: include the missing field in the pattern | |
23 | | | |
24 | LL | Dog { name: x, age } => {} | |
94222f64 | 25 | | ~~~~~~~ |
5869c6ff XL |
26 | help: if you don't care about this missing field, you can explicitly ignore it |
27 | | | |
28 | LL | Dog { name: x, .. } => {} | |
94222f64 | 29 | | ~~~~~~ |
5869c6ff XL |
30 | |
31 | error[E0027]: pattern does not mention field `age` | |
32 | --> $DIR/E0027.rs:19:9 | |
33 | | | |
34 | LL | Dog { name: x , } => {} | |
35 | | ^^^^^^^^^^^^^^^^^^ missing field `age` | |
36 | | | |
37 | help: include the missing field in the pattern | |
38 | | | |
39 | LL | Dog { name: x, age } => {} | |
94222f64 | 40 | | ~~~~~~~ |
5869c6ff XL |
41 | help: if you don't care about this missing field, you can explicitly ignore it |
42 | | | |
43 | LL | Dog { name: x, .. } => {} | |
94222f64 | 44 | | ~~~~~~ |
1b1a35ee XL |
45 | |
46 | error[E0027]: pattern does not mention fields `name`, `age` | |
5869c6ff | 47 | --> $DIR/E0027.rs:22:9 |
1b1a35ee XL |
48 | | |
49 | LL | Dog {} => {} | |
50 | | ^^^^^^ missing fields `name`, `age` | |
51 | | | |
52 | help: include the missing fields in the pattern | |
53 | | | |
54 | LL | Dog { name, age } => {} | |
94222f64 | 55 | | ~~~~~~~~~~~~~ |
29967ef6 | 56 | help: if you don't care about these missing fields, you can explicitly ignore them |
1b1a35ee XL |
57 | | |
58 | LL | Dog { .. } => {} | |
94222f64 | 59 | | ~~~~~~ |
2c00a5a8 | 60 | |
5869c6ff | 61 | error: aborting due to 4 previous errors |
2c00a5a8 | 62 | |
0531ce1d | 63 | For more information about this error, try `rustc --explain E0027`. |