Sign in
rust
/
rust
/
08650fbb506c44fbc95d91abfb7cd95a56bbff30
/
.
/
src
/
test
/
ui
/
parser
/
closure-return-syntax.rs
blob: c6a08abeff4ba76d1094bddf8618a08c9f2e091d [
file
]
// Test that we cannot parse a closure with an explicit return type
// unless it uses braces.
fn
main
()
{
let
x
=
||
->
i32
22
;
//~^ ERROR expected `{`, found `22`
}