blob: fb5c612605263a84f18ade832cc55306c4ed1379 [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());
}