We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
i
1 parent 26bd186 commit 3f56c0aCopy full SHA for 3f56c0a
src/test/compile-fail/do2.rs
@@ -1,5 +1,5 @@
1
-fn f(f: fn@(int) -> bool) -> bool { f(10) }
+fn f(f: fn@(int) -> bool) -> bool { f(10i) }
2
3
fn main() {
4
- 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`
5
}
0 commit comments