Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
type-inference
/
sort_by_key.rs
blob: afc4d90b8650f3d263c003b99107ce20eb5848ea [
file
] [
log
] [
blame
]
fn
main
()
{
let
mut
lst
:
[([
i32
;
10
],
bool
);
10
]
=
[([
0
;
10
],
false
);
10
];
lst
.
sort_by_key
(|&(
v
,
_
)|
v
.
iter
().
sum
());
//~ ERROR type annotations needed
println
!(
"{:?}"
,
lst
);
}