2023-01-01 23:28:03 -06:00
|
|
|
// run-rustfix
|
|
|
|
fn test(t: &mut dyn Iterator<Item=&u64>) -> u64 {
|
2023-01-02 11:55:13 -06:00
|
|
|
*t.min().unwrap() //~ ERROR the `min` method cannot be invoked on
|
2023-01-01 23:28:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let array = [0u64];
|
|
|
|
test(&mut array.iter());
|
|
|
|
}
|