summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-remove-refs-5.fixed
blob: 9f59f9c199a331b8a8a212dcf16fe6669f3d5a7c (plain)
1
2
3
4
5
6
7
8
// run-rustfix
fn main() {
    let v = &mut Vec::<i32>::new();
    for _ in v {} //~ ERROR E0277

    let v = &mut [1u8];
    for _ in v {} //~ ERROR E0277
}