summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-remove-refs-2.fixed
blob: 0f9c3abfe8ee8a21a170d42c4ec183308985b4ec (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix

fn main() {
    let v = vec![0, 1, 2, 3];

    for (i, _) in v.iter().enumerate() {
        //~^ ERROR `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
        println!("{}", i);
    }
}