diff options
| author | Guanqun Lu <guanqun.lu@gmail.com> | 2019-09-21 23:36:12 +0800 |
|---|---|---|
| committer | Guanqun Lu <guanqun.lu@gmail.com> | 2019-09-21 23:38:35 +0800 |
| commit | e001c5f9d894a66722db061ecbbd224973dc0fb8 (patch) | |
| tree | 460e7c212b6cbb7ef0cb042bd1f53332134f577a /src/test/ui/empty | |
| parent | 9ad1e7c46cf690b7ec6953b142430d21ca2d8799 (diff) | |
| download | rust-e001c5f9d894a66722db061ecbbd224973dc0fb8.tar.gz rust-e001c5f9d894a66722db061ecbbd224973dc0fb8.zip | |
unify errors for tuple/struct variants
fix #63983
Diffstat (limited to 'src/test/ui/empty')
| -rw-r--r-- | src/test/ui/empty/empty-struct-tuple-pat.stderr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/empty/empty-struct-tuple-pat.stderr b/src/test/ui/empty/empty-struct-tuple-pat.stderr index 777b9d4a4ac..6c15e7bf282 100644 --- a/src/test/ui/empty/empty-struct-tuple-pat.stderr +++ b/src/test/ui/empty/empty-struct-tuple-pat.stderr @@ -20,15 +20,16 @@ error[E0532]: expected unit struct/variant or constant, found tuple variant `E:: --> $DIR/empty-struct-tuple-pat.rs:29:9 | LL | E::Empty4 => () - | ^^^^^^^^^ not a unit struct/variant or constant + | ^^^^^^^^^ did you mean `E::Empty4 ( /* fields */ )`? error[E0532]: expected unit struct/variant or constant, found tuple variant `XE::XEmpty5` --> $DIR/empty-struct-tuple-pat.rs:33:9 | LL | XE::XEmpty5 => (), | ^^^^------- - | | - | help: a unit variant with a similar name exists: `XEmpty4` + | | | + | | help: a unit variant with a similar name exists: `XEmpty4` + | did you mean `XE::XEmpty5 ( /* fields */ )`? error: aborting due to 4 previous errors |
