Skip to content

Commit 86b8bf3

Browse files
committed
testsuite: Capitalize error message, unbreak build
1 parent 69fff85 commit 86b8bf3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/compile-fail/issue-2817-2.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ fn main() {
1414
for uint::range(0, 100000) |_i| { //~ ERROR A for-loop body must return (), but
1515
false
1616
};
17-
for not_bool |_i| { //~ ERROR a `for` loop iterator should expect a closure that returns `bool`
17+
for not_bool |_i| {
18+
//~^ ERROR A `for` loop iterator should expect a closure that returns `bool`
1819
~"hi"
1920
};
2021
for uint::range(0, 100000) |_i| { //~ ERROR A for-loop body must return (), but
2122
~"hi"
2223
};
23-
for not_bool() |_i| { //~ ERROR a `for` loop iterator should expect a closure that returns `bool`
24+
for not_bool() |_i| {
25+
//~^ ERROR A `for` loop iterator should expect a closure that returns `bool`
2426
};
2527
}

0 commit comments

Comments
 (0)