We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69fff85 commit 86b8bf3Copy full SHA for 86b8bf3
src/test/compile-fail/issue-2817-2.rs
@@ -14,12 +14,14 @@ fn main() {
14
for uint::range(0, 100000) |_i| { //~ ERROR A for-loop body must return (), but
15
false
16
};
17
- for not_bool |_i| { //~ ERROR a `for` loop iterator should expect a closure that returns `bool`
+ for not_bool |_i| {
18
+ //~^ ERROR A `for` loop iterator should expect a closure that returns `bool`
19
~"hi"
20
21
22
23
- for not_bool() |_i| { //~ ERROR a `for` loop iterator should expect a closure that returns `bool`
24
+ for not_bool() |_i| {
25
26
27
}
0 commit comments