mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
10 lines
204 B
Rust
10 lines
204 B
Rust
// 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());
|
|
}
|