summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-55344.rs
blob: 20f18dc465d32b5938c7ab77213436fdfff19172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

#![deny(unused_mut)]

pub fn foo() {
    return;

    let mut v = 0;
    assert_eq!(v, 0);
    v = 1;
    assert_eq!(v, 1);
}

fn main() {}