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

5 lines
127 B
Rust
Raw Normal View History

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