mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-07 06:50:27 +00:00
10 lines
208 B
Plaintext
10 lines
208 B
Plaintext
// run-rustfix
|
|
fn test(t: &mut 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());
|
|
}
|