blob: c1c969b90e4dbf89fc087bbbcd992cc432105d34 (
plain)
1
2
3
4
5
6
7
8
|
fn test(t: &dyn Iterator<Item=&u64>) -> u64 {
t.min().unwrap() //~ ERROR the `min` method cannot be invoked on `&dyn Iterator<Item = &u64>`
}
fn main() {
let array = [0u64];
test(&mut array.iter());
}
|