summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/pattern-tyvar.stderr
blob: 4eb00254861d5d2045f08f8791b24ab6099118ae (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 `Option<Vec<isize>>`, found `Option<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`.