Skip to content

Commit 3f56c0a

Browse files
committed
Add i suffix to cfail test so it works after suffix inference
1 parent 26bd186 commit 3f56c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/do2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fn f(f: fn@(int) -> bool) -> bool { f(10) }
1+
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
22

33
fn main() {
4-
assert do f() { |i| i == 10 } == 10; //! ERROR: expected `bool` but found `int`
4+
assert do f() { |i| i == 10i } == 10i; //! ERROR: expected `bool` but found `int`
55
}

0 commit comments

Comments
 (0)