Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
closures
/
old-closure-expression-remove-semicolon.rs
blob: edff1823d09fe5824429162732ceeb341c190a50 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn
foo
()
->
i32
{
0
}
fn
main
()
{
let
_x
:
i32
=
{
//~^ ERROR mismatched types
foo
();
//~ HELP remove this semicolon to return this value
};
}