about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-12-20 14:43:07 -0800
committerCamelid <camelidcamel@gmail.com>2021-01-12 19:25:51 -0800
commit9959d6deedbf39d58fac06949596073d9c0dbb23 (patch)
treebbb82c5d94aed4e35eacf9572400c75ea7016ad7 /src/test/ui/error-codes
parentfe82cc38a0b3e39b9425090e2107c0ba15760491 (diff)
downloadrust-9959d6deedbf39d58fac06949596073d9c0dbb23.tar.gz
rust-9959d6deedbf39d58fac06949596073d9c0dbb23.zip
Only suggest `..` if more than one field is missing
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0023.stderr14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/ui/error-codes/E0023.stderr b/src/test/ui/error-codes/E0023.stderr
index aaaada518d3..0c6f496cf43 100644
--- a/src/test/ui/error-codes/E0023.stderr
+++ b/src/test/ui/error-codes/E0023.stderr
@@ -5,16 +5,10 @@ LL |     Apple(String, String),
    |     --------------------- tuple variant defined here
 ...
 LL |         Fruit::Apple(a) => {},
-   |         ^^^^^^^^^^^^^^^ expected 2 fields, found 1
-   |
-help: use `_` to explicitly ignore each field
-   |
-LL |         Fruit::Apple(a, _) => {},
-   |                       ^^^
-help: use `..` to ignore the rest of the fields
-   |
-LL |         Fruit::Apple(a, ..) => {},
-   |                       ^^^^
+   |         ^^^^^^^^^^^^^^-
+   |         |             |
+   |         |             help: use `_` to explicitly ignore each field
+   |         expected 2 fields, found 1
 
 error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
   --> $DIR/E0023.rs:12:9