Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
functions-closures
/
closure-inference2.rs
blob: f2dfa5888aac5764115f9b7eec3f69b95867b174 [
file
] [
log
] [
blame
]
// run-pass
// Test a rather underspecified example:
pub
fn
main
()
{
let
f
=
{|
i
|
i
};
assert_eq
!(
f
(
2
),
2
);
assert_eq
!(
f
(
5
),
5
);
}