// -*- rust -*- extern mod std; use option::Some; // error-pattern: mismatched types enum bar { t1((), Option<~[int]>), t2, } fn foo(t: bar) { match t { t1(_, Some::(x)) => { log(debug, x); } _ => { fail; } } } fn main() { }