fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
208 B9 linesraw
1// run-rustfix
2fn test(t: &mut dyn Iterator<Item=&u64>) -> u64 {
3     *t.min().unwrap() //~ ERROR the `min` method cannot be invoked on
4}
5
6fn main() {
7     let array = [0u64];
8     test(&mut array.iter());
9}