rust/src/test/compile-fail/occurs-check-3.rs

5 lines
136 B
Rust
Raw Normal View History

// error-pattern:mismatched types
// From Issue #778
enum clam<T> { a(T), }
2012-08-03 19:59:04 -07:00
fn main() { let c; c = a(c); alt c { a::<int>(_) => { } } }