Add xfailed test cases
This commit is contained in:
parent
9d276b11e5
commit
3d8df9947f
2 changed files with 27 additions and 0 deletions
18
src/test/run-pass/issue-3121.rs
Normal file
18
src/test/run-pass/issue-3121.rs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// xfail-test
|
||||||
|
enum side { mayo, catsup, vinegar }
|
||||||
|
enum order { hamburger, fries(side), shake }
|
||||||
|
enum meal { to_go(order), for_here(order) }
|
||||||
|
|
||||||
|
fn foo(m: @meal, cond: bool) {
|
||||||
|
match *m {
|
||||||
|
to_go(_) => { }
|
||||||
|
for_here(_) if cond => {}
|
||||||
|
for_here(hamburger) => {}
|
||||||
|
for_here(fries(_s)) => {}
|
||||||
|
for_here(shake) => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
foo(@for_here(hamburger), true)
|
||||||
|
}
|
9
src/test/run-pass/issue-3895.rs
Normal file
9
src/test/run-pass/issue-3895.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// xfail-test
|
||||||
|
fn main() {
|
||||||
|
enum State { BadChar, BadSyntax }
|
||||||
|
|
||||||
|
match BadChar {
|
||||||
|
_ if true => BadChar,
|
||||||
|
BadChar | BadSyntax => fail ,
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue