From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/error-codes/E0027.stderr | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 tests/ui/error-codes/E0027.stderr (limited to 'tests/ui/error-codes/E0027.stderr') diff --git a/tests/ui/error-codes/E0027.stderr b/tests/ui/error-codes/E0027.stderr new file mode 100644 index 000000000..9ae97e4a9 --- /dev/null +++ b/tests/ui/error-codes/E0027.stderr @@ -0,0 +1,63 @@ +error[E0027]: pattern does not mention field `name` + --> $DIR/E0027.rs:11:9 + | +LL | Dog { age: x } => {} + | ^^^^^^^^^^^^^^ missing field `name` + | +help: include the missing field in the pattern + | +LL | Dog { age: x, name } => {} + | ~~~~~~~~ +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 } => {} + | ~~~~~~~~~~~~~ +help: if you don't care about these missing fields, you can explicitly ignore them + | +LL | Dog { .. } => {} + | ~~~~~~ + +error: aborting due to 4 previous errors + +For more information about this error, try `rustc --explain E0027`. -- cgit v1.2.3