testsuite: Capitalize error message, unbreak build

This commit is contained in:
Tim Chevalier 2013-01-24 12:14:26 -08:00
parent 69fff85ec8
commit 86b8bf37bb

View File

@ -14,12 +14,14 @@ fn main() {
for uint::range(0, 100000) |_i| { //~ ERROR A for-loop body must return (), but
false
};
for not_bool |_i| { //~ ERROR a `for` loop iterator should expect a closure that returns `bool`
for not_bool |_i| {
//~^ ERROR A `for` loop iterator should expect a closure that returns `bool`
~"hi"
};
for uint::range(0, 100000) |_i| { //~ ERROR A for-loop body must return (), but
~"hi"
};
for not_bool() |_i| { //~ ERROR a `for` loop iterator should expect a closure that returns `bool`
for not_bool() |_i| {
//~^ ERROR A `for` loop iterator should expect a closure that returns `bool`
};
}