Sign in
fuchsia
/
third_party
/
rust
/
11429b2d1373c4a0c26ce681983cfa9aa925daaf
/
.
/
src
/
test
/
ui
/
parser
/
closure-return-syntax.rs
blob: 54eb791d2bce41462fbebccc048d8bb6992fe33b [
file
] [
log
] [
blame
]
// Test that we cannot parse a closure with an explicit return type
// unless it uses braces.
fn
main
()
{
let
x
=
||
->
i32
22
;
//~^ ERROR expected one of `!`, `(`, `+`, `::`, `<`, or `{`, found `22`
}