rust/src/test/compile-fail/pattern-tyvar.rs
Marijn Haverbeke 07667d29aa Temporarily xfail compile-fail/pattern-tyvar
So that the tinderboxes can go green again. Patrick, please look into
this at some point.
2011-06-03 10:23:13 +02:00

28 lines
340 B
Rust

// xfail-stage0
// xfail-stage1
// xfail-stage2
// -*- rust -*-
use std;
import std::option;
import std::option::some;
// error-pattern: mismatched types
tag bar {
t1((), option::t[vec[int]]);
t2;
}
fn foo(bar t) {
alt (t) {
case (t1(_, some[int](?x))) {
log x;
}
case (_) {
fail;
}
}
}
fn main() {
}