Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
suggestions
/
imm-ref-trait-object.rs
blob: 288d6c699f59a03a38335fea9aef48938e33288b [
file
] [
log
] [
blame
]
fn
test
(
t
:
&
dyn
Iterator
<
Item
=&
u64
>)
->
u64
{
t
.
min
().
unwrap
()
//~ ERROR the `min` method cannot be invoked on a trait object
}
fn
main
()
{
let
array
=
[
0u64
];
test
(&
mut
array
.
iter
());
}