summaryrefslogtreecommitdiffstats
path: root/tests/ui/illegal-sized-bound/mutability-mismatch-arg.fixed
blob: 74f3c887f0276b24301733fc5f0d262fd215de62 (plain)
1
2
3
4
5
6
7
8
9
// 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());
}