]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0027.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / error-codes / E0027.stderr
1 error[E0027]: pattern does not mention field `name`
2 --> $DIR/E0027.rs:10: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 explicitely ignore it
12 |
13 LL | Dog { age: x, .. } => {}
14 | ^^^^
15
16 error[E0027]: pattern does not mention fields `name`, `age`
17 --> $DIR/E0027.rs:13:9
18 |
19 LL | Dog {} => {}
20 | ^^^^^^ missing fields `name`, `age`
21 |
22 help: include the missing fields in the pattern
23 |
24 LL | Dog { name, age } => {}
25 | ^^^^^^^^^^^^^
26 help: if you don't care about these missing fields, you can explicitely ignore them
27 |
28 LL | Dog { .. } => {}
29 | ^^^^^^
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0027`.