Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
illegal-sized-bound
/
mutability-mismatch-arg.rs
blob: 3b02c5a5ad15a5dc5b42e118f845624dedeac8e4 [
file
] [
log
] [
blame
]
// run-rustfix
fn
test
(
t
:
&
dyn
Iterator
<
Item
=&
u64
>)
->
u64
{
*
t
.
min
().
unwrap
()
//~ ERROR the `min` method cannot be invoked on
}
fn
main
()
{
let
array
=
[
0u64
];
test
(&
mut
array
.
iter
());
}