rust/tests/ui/error-codes/E0027.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-02-08 03:35:35 +00:00
error[E0027]: pattern does not mention field `name`
--> $DIR/E0027.rs:11:9
2018-02-08 03:35:35 +00:00
|
2018-02-23 00:42:32 +00:00
LL | Dog { age: x } => {}
2018-02-08 03:35:35 +00:00
| ^^^^^^^^^^^^^^ missing field `name`
|
help: include the missing field in the pattern
|
LL | Dog { age: x, name } => {}
| ~~~~~~~~
2020-11-06 03:55:58 +00:00
help: if you don't care about this missing field, you can explicitly ignore it
|
LL | Dog { age: x, .. } => {}
| ~~~~~~
error[E0027]: pattern does not mention field `age`
--> $DIR/E0027.rs:15:9
|
LL | Dog { name: x, } => {}
| ^^^^^^^^^^^^^^^^ missing field `age`
|
help: include the missing field in the pattern
|
LL | Dog { name: x, age } => {}
| ~~~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
|
LL | Dog { name: x, .. } => {}
| ~~~~~~
error[E0027]: pattern does not mention field `age`
--> $DIR/E0027.rs:19:9
|
LL | Dog { name: x , } => {}
| ^^^^^^^^^^^^^^^^^^ missing field `age`
|
help: include the missing field in the pattern
|
LL | Dog { name: x, age } => {}
| ~~~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
|
LL | Dog { name: x, .. } => {}
| ~~~~~~
error[E0027]: pattern does not mention fields `name`, `age`
--> $DIR/E0027.rs:22:9
|
LL | Dog {} => {}
| ^^^^^^ missing fields `name`, `age`
|
help: include the missing fields in the pattern
|
LL | Dog { name, age } => {}
| ~~~~~~~~~~~~~
2020-11-06 03:55:58 +00:00
help: if you don't care about these missing fields, you can explicitly ignore them
|
LL | Dog { .. } => {}
| ~~~~~~
2018-02-08 03:35:35 +00:00
error: aborting due to 4 previous errors
2018-02-08 03:35:35 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0027`.