summary refs log tree commit diff
path: root/src/test/compile-fail/occurs-check-3.rs
blob: 870b86d42c3393a70bd6c05cbe42ecd3ae1b10d6 (plain)
1
2
3
4
// error-pattern:mismatched types
// From Issue #778
enum clam<T> { a(T), }
fn main() { let c; c = a(c); alt c { a::<int>(_) { } } }