rust/src/test/compile-fail/occurs-check-3.rs
2012-08-06 15:36:30 -07:00

5 lines
138 B
Rust

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