diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-01-05 17:08:15 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-01-12 19:36:28 -0800 |
| commit | a873337f2100ffa341f1a03e316ded6bfa2e95f7 (patch) | |
| tree | 4d958c48ff6af0249c6956681cfbb4aefaef3691 /src/test/ui/pattern/pattern-error-continue.stderr | |
| parent | c2d381d39d282c0586d50ea7d7a431ffd5ddb3fb (diff) | |
| download | rust-a873337f2100ffa341f1a03e316ded6bfa2e95f7.tar.gz rust-a873337f2100ffa341f1a03e316ded6bfa2e95f7.zip | |
Point at the match discriminant when arm pattern has a type mismatch
Diffstat (limited to 'src/test/ui/pattern/pattern-error-continue.stderr')
| -rw-r--r-- | src/test/ui/pattern/pattern-error-continue.stderr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/pattern/pattern-error-continue.stderr b/src/test/ui/pattern/pattern-error-continue.stderr index c17d4b70f0b..318067cbb50 100644 --- a/src/test/ui/pattern/pattern-error-continue.stderr +++ b/src/test/ui/pattern/pattern-error-continue.stderr @@ -21,6 +21,8 @@ LL | A::B(_, _, _) => (), //~ ERROR this pattern has 3 fields, but error[E0308]: mismatched types --> $DIR/pattern-error-continue.rs:22:9 | +LL | match 'c' { + | --- this match expression evaluates to `char` LL | S { .. } => (), | ^^^^^^^^ expected char, found struct `S` | |
