Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
suggestions
/
type-ascription-instead-of-let.rs
blob: 0e1c307502728c7c8bedf38e64887a2e894be3d2 [
file
] [
log
] [
blame
]
fn
fun
(
x
:
i32
)
->
i32
{
x
}
fn
main
()
{
let
closure_annotated
=
|
value
:
i32
|
->
i32
{
temp
:
i32
=
fun
(
5i32
);
//~^ ERROR cannot find value `temp` in this scope
temp
+
value
+
1
//~^ ERROR cannot find value `temp` in this scope
};
}