rust/src/test/compile-fail/do-lambda-requires-braces.rs
Lindsey Kuper 5a63b2100e More consistent use of backticks and "expected" in error messages.
Got some of the debug messages, here, too.  I figure it doesn't hurt
to get used to doing this even in places where users won't ever see
it.
2012-07-13 15:31:39 -07:00

6 lines
121 B
Rust

fn main() {
do something
|x| do somethingelse //~ ERROR: expected `{` but found `do`
|y| say(x, y)
}