diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 09:08:18 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 14:05:17 +0100 |
| commit | d7e2f3aee5508538c5de14211ab5b31362e1164a (patch) | |
| tree | dbeaede2fe24403f162f8c6486e6fa5672a4f32f /src/test/ui/pattern | |
| parent | f35840f77cbb496dc35645331318f4b52c9a5b2a (diff) | |
refactor and fix this-expression-has-type note
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/pat-struct-field-expr-has-type.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/pat-struct-field-expr-has-type.stderr b/src/test/ui/pattern/pat-struct-field-expr-has-type.stderr index 7962c376a92..d57a8a0dbc1 100644 --- a/src/test/ui/pattern/pat-struct-field-expr-has-type.stderr +++ b/src/test/ui/pattern/pat-struct-field-expr-has-type.stderr @@ -2,7 +2,7 @@ error[E0308]: mismatched types --> $DIR/pat-struct-field-expr-has-type.rs:7:16 | LL | match (S { f: 42 }) { - | ------------- this expression has type `u8` + | ------------- this expression has type `S` LL | S { f: Ok(_) } => {} | ^^^^^ expected `u8`, found enum `std::result::Result` | diff --git a/src/test/ui/pattern/pattern-tyvar.stderr b/src/test/ui/pattern/pattern-tyvar.stderr index 1e671e8d8ef..15425da69bc 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 expression has type `std::option::Option<std::vec::Vec<isize>>` + | - this expression has type `Bar` LL | Bar::T1(_, Some::<isize>(x)) => { | ^^^^^^^^^^^^^^^^ expected struct `std::vec::Vec`, found `isize` | |
