Another test for the occurs check, this one from issue 778
This commit is contained in:
parent
b62e80c1f0
commit
c35bf9ca04
1 changed files with 4 additions and 0 deletions
4
src/test/compile-fail/occurs-check-3.rs
Normal file
4
src/test/compile-fail/occurs-check-3.rs
Normal file
|
|
@ -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](_) { } } }
|
||||
Loading…
Add table
Add a link
Reference in a new issue