Add i suffix to cfail test so it works after suffix inference

This commit is contained in:
Lindsey Kuper 2012-06-19 16:57:13 -07:00
parent 26bd186726
commit 3f56c0a42d

View File

@ -1,5 +1,5 @@
fn f(f: fn@(int) -> bool) -> bool { f(10) }
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
fn main() {
assert do f() { |i| i == 10 } == 10; //! ERROR: expected `bool` but found `int`
assert do f() { |i| i == 10i } == 10i; //! ERROR: expected `bool` but found `int`
}