2015-03-18 09:22:38 -04:00
|
|
|
// Test that we cannot parse a closure with an explicit return type
|
|
|
|
|
// unless it uses braces.
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2016-10-26 02:17:29 +03:00
|
|
|
let x = || -> i32 22;
|
2020-03-05 05:49:30 +01:00
|
|
|
//~^ ERROR expected `{`, found `22`
|
2015-03-18 09:22:38 -04:00
|
|
|
}
|