summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/pattern-tyvar.stderr
blob: f1e2a9d72cec899541a3e53a911f41960f368c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/pattern-tyvar.rs:5:18
   |
LL |     match t {
   |           - this expression has type `Bar`
LL |       Bar::T1(_, Some::<isize>(x)) => {
   |                  ^^^^^^^^^^^^^^^^ expected struct `Vec`, found `isize`
   |
   = note: expected enum `Option<Vec<isize>>`
              found enum `Option<isize>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.