error[E0308]: mismatched types --> $DIR/pattern-tyvar.rs:5:18 | LL | match t { | - this expression has type `Bar` LL | Bar::T1(_, Some::(x)) => { | ^^^^^^^^^^^^^^^^ expected `Option>`, found `Option` | = note: expected enum `Option>` found enum `Option` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`.