summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-init-op-equal.rs
blob: d3fa852ac91ba3c01da384a5d37007b63ed9834b (plain)
1
2
3
4
5
6
7
8
fn test() {
    let v: isize;
    v += 1; //~ ERROR use of possibly uninitialized variable: `v`
    v.clone();
}

fn main() {
}