Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
794181788d94b7bc9e4717b97313f525054c4710
/
.
/
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
};
}