Add i suffix to cfail test so it works after suffix inference
This commit is contained in:
parent
26bd186726
commit
3f56c0a42d
1 changed files with 2 additions and 2 deletions
|
|
@ -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`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue