]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-codes/E0027.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / error-codes / E0027.stderr
1 error[E0027]: pattern does not mention field `name`
2   --> $DIR/E0027.rs:11:9
3    |
4 LL |         Dog { age: x } => {}
5    |         ^^^^^^^^^^^^^^ missing field `name`
6    |
7 help: include the missing field in the pattern
8    |
9 LL |         Dog { age: x, name } => {}
10    |                     ~~~~~~~~
11 help: if you don't care about this missing field, you can explicitly ignore it
12    |
13 LL |         Dog { age: x, .. } => {}
14    |                     ~~~~~~
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 } => {}
25    |                      ~~~~~~~
26 help: if you don't care about this missing field, you can explicitly ignore it
27    |
28 LL |         Dog { name: x, .. } => {}
29    |                      ~~~~~~
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 } => {}
40    |                      ~~~~~~~
41 help: if you don't care about this missing field, you can explicitly ignore it
42    |
43 LL |         Dog { name: x, .. } => {}
44    |                      ~~~~~~
45
46 error[E0027]: pattern does not mention fields `name`, `age`
47   --> $DIR/E0027.rs:22:9
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 } => {}
55    |             ~~~~~~~~~~~~~
56 help: if you don't care about these missing fields, you can explicitly ignore them
57    |
58 LL |         Dog { .. } => {}
59    |             ~~~~~~
60
61 error: aborting due to 4 previous errors
62
63 For more information about this error, try `rustc --explain E0027`.