]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/pattern-tyvar.stderr
Reword label as per review comment
[rust.git] / src / test / ui / pattern / pattern-tyvar.stderr
index 55e09e02a1d8f988dc202834e4f4fdaa72c5e513..69cd552aabd1bf56c29f311977558064e6daa56a 100644 (file)
@@ -1,7 +1,9 @@
 error[E0308]: mismatched types
-  --> $DIR/pattern-tyvar.rs:17:18
+  --> $DIR/pattern-tyvar.rs:5:18
    |
-LL |       bar::t1(_, Some::<isize>(x)) => {
+LL |     match t {
+   |           - this match expression has type `std::option::Option<std::vec::Vec<isize>>`
+LL |       Bar::T1(_, Some::<isize>(x)) => { //~ ERROR mismatched types
    |                  ^^^^^^^^^^^^^^^^ expected struct `std::vec::Vec`, found isize
    |
    = note: expected type `std::option::Option<std::vec::Vec<isize>>`