rust/src/test/compile-fail/occurs-check-3.rs
2011-08-16 15:05:57 -07:00

5 lines
132 B
Rust

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