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

5 lines
133 B
Rust
Raw Normal View History

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