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

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