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