about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-06 09:36:42 +0200
committerGitHub <noreply@github.com>2019-09-06 09:36:42 +0200
commit6968e53a5c4e6d883ae4683d76bb5a8ca444aedb (patch)
tree1fb8b3260deeb9e108b9401d4d6cc23388f609e2 /src/test/ui/error-codes
parent37a022ee43c95e815c458844b223ad73c11715d8 (diff)
parent24d0a01b75c034d52bdca10cca08e69538e871ca (diff)
downloadrust-6968e53a5c4e6d883ae4683d76bb5a8ca444aedb.tar.gz
rust-6968e53a5c4e6d883ae4683d76bb5a8ca444aedb.zip
Rollup merge of #64161 - estebank:point-variant, r=Centril
Point at variant on pattern field count mismatch
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0023.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0023.stderr b/src/test/ui/error-codes/E0023.stderr
index 1bc90a995fe..d04e494c258 100644
--- a/src/test/ui/error-codes/E0023.stderr
+++ b/src/test/ui/error-codes/E0023.stderr
@@ -1,18 +1,27 @@
 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
   --> $DIR/E0023.rs:10:9
    |
+LL |     Apple(String, String),
+   |     --------------------- tuple variant defined here
+...
 LL |         Fruit::Apple(a) => {},
    |         ^^^^^^^^^^^^^^^ expected 2 fields, found 1
 
 error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
   --> $DIR/E0023.rs:11:9
    |
+LL |     Apple(String, String),
+   |     --------------------- tuple variant defined here
+...
 LL |         Fruit::Apple(a, b, c) => {},
    |         ^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 3
 
 error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
   --> $DIR/E0023.rs:12:9
    |
+LL |     Pear(u32),
+   |     --------- tuple variant defined here
+...
 LL |         Fruit::Pear(1, 2) => {},
    |         ^^^^^^^^^^^^^^^^^ expected 1 field, found 2