mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
Another test for the occurs check, this one from issue 778
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// error-pattern:mismatched types
|
||||
// From Issue #778
|
||||
tag clam[T] { a(T); }
|
||||
fn main() { let c = a(c); alt c { a[int](_) { } } }
|
||||
Reference in New Issue
Block a user