diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 07:02:24 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 13:50:20 +0100 |
| commit | ab050d6a83a9bdc5856a20402b6ea440d474638c (patch) | |
| tree | 24e93ba96d75e608b51b03d5aca0b5522fab7360 /src/test/ui/pattern | |
| parent | 73db83aa70bea7973fa4bb1f025de199a19d5282 (diff) | |
| download | rust-ab050d6a83a9bdc5856a20402b6ea440d474638c.tar.gz rust-ab050d6a83a9bdc5856a20402b6ea440d474638c.zip | |
MatchExpressionArmPattern: Use more generic wording.
The existing wording was inappropriate for e.g.
`if let Ok(_) = expr { .. }`. The diagnostic would
leak the fact that we desugar to a `match`.
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/pattern-error-continue.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/pattern/pattern-tyvar.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/pattern/pattern-error-continue.stderr b/src/test/ui/pattern/pattern-error-continue.stderr index 2f9fe1981bc..60f76796c03 100644 --- a/src/test/ui/pattern/pattern-error-continue.stderr +++ b/src/test/ui/pattern/pattern-error-continue.stderr @@ -28,7 +28,7 @@ error[E0308]: mismatched types --> $DIR/pattern-error-continue.rs:22:9 | LL | match 'c' { - | --- this match expression has type `char` + | --- this expression has type `char` LL | S { .. } => (), | ^^^^^^^^ expected `char`, found struct `S` diff --git a/src/test/ui/pattern/pattern-tyvar.stderr b/src/test/ui/pattern/pattern-tyvar.stderr index b2afeacdf68..1e671e8d8ef 100644 --- a/src/test/ui/pattern/pattern-tyvar.stderr +++ b/src/test/ui/pattern/pattern-tyvar.stderr @@ -2,7 +2,7 @@ error[E0308]: mismatched types --> $DIR/pattern-tyvar.rs:5:18 | LL | match t { - | - this match expression has type `std::option::Option<std::vec::Vec<isize>>` + | - this expression has type `std::option::Option<std::vec::Vec<isize>>` LL | Bar::T1(_, Some::<isize>(x)) => { | ^^^^^^^^^^^^^^^^ expected struct `std::vec::Vec`, found `isize` | |
