Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
functions-closures
/
closure-inference2.rs
blob: 8db7016be6d99aeea4a5310640012ed3652e9048 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
// Test a rather underspecified example:
#![
allow
(
unused_braces
)]
pub
fn
main
()
{
let
f
=
{|
i
|
i
};
assert_eq
!(
f
(
2
),
2
);
assert_eq
!(
f
(
5
),
5
);
}