summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-remove-refs-4.rs
blob: 3c3d9b1b3f981811151e07af3c111ed85a437229 (plain)
1
2
3
4
5
// run-rustfix
fn main() {
    let foo = &[1,2,3].iter();
    for _i in &foo {} //~ ERROR E0277
}