summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-remove-refs-3.rs
blob: 0622adada0c64bf6eef28ea90f700329236f7af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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
        println!("{}", i);
    }
}