Skip to content

Commit f74014b

Browse files
committed
test: Fix compile-fail tests
1 parent 4846aff commit f74014b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/test/compile-fail/do2.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// xfail-fast
2+
// xfail-test
3+
4+
// This is xfail'd due to bad typecheck error messages. (There is a spurious
5+
// "expected `bool` but but found `int`" message.)
6+
17
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
28

39
fn main() {

src/test/compile-fail/fn-compare-mismatch.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// xfail-fast
2+
// xfail-test
3+
4+
// This is xfail'd due to bad spurious typecheck error messages.
5+
16
fn main() {
27
fn f() { }
38
fn g(i: int) { }

0 commit comments

Comments
 (0)