diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-12-16 22:46:13 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2022-03-08 00:20:41 +0000 |
| commit | 6f45f73adc6afce2cce907fd038fdff1e395b632 (patch) | |
| tree | 829944bfc362378a25f69900fd10439a6e4ebf2a /src/test/ui/pattern/usefulness/issue-72377.stderr | |
| parent | ab4feea50dd3e0109a30488300c213ca074d01a6 (diff) | |
| download | rust-6f45f73adc6afce2cce907fd038fdff1e395b632.tar.gz rust-6f45f73adc6afce2cce907fd038fdff1e395b632.zip | |
Change wording of suggestion to add missing `match` arm
Diffstat (limited to 'src/test/ui/pattern/usefulness/issue-72377.stderr')
| -rw-r--r-- | src/test/ui/pattern/usefulness/issue-72377.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/usefulness/issue-72377.stderr b/src/test/ui/pattern/usefulness/issue-72377.stderr index 396595b2635..20f002dd3db 100644 --- a/src/test/ui/pattern/usefulness/issue-72377.stderr +++ b/src/test/ui/pattern/usefulness/issue-72377.stderr @@ -5,7 +5,7 @@ LL | match (x, y) { | ^^^^^^ patterns `(A, Some(A))`, `(A, Some(B))`, `(B, Some(B))` and 2 more not covered | = note: the matched value is of type `(X, Option<X>)` -help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms +help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms | LL ~ (X::A, Some(X::C)) | (X::C, Some(X::A)) => false, LL ~ _ => todo!(), |
