// error-pattern:mismatched types // From Issue #778 enum clam { a(T), } fn main() { let c; c = a(c); match c { a::(_) => { } } }