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

fn main() {
}