summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-init-plus-equal.rs
blob: 2a52a3f4e5eb1ad0c2eebcfe4bb4d884b7dd9cef (plain)
1
2
3
4
5
6
7
8
fn test() {
    let mut v: isize;
    v = v + 1; //~ ERROR E0381
    v.clone();
}

fn main() {
}