Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
illegal-sized-bound
/
mutability-mismatch-arg.fixed
blob: 76a3b2563ca8b44fc923063ad1d2dea169dc116e [
file
] [
log
] [
blame
]
//@ run-rustfix
fn test
(
t
:
&
mut 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
());
}