mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
9 lines
217 B
Rust
9 lines
217 B
Rust
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());
|
|
}
|