summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-init-plus-equal.rs
blob: d9d20a2a9c14879b454c70b452cfb014fb129a6f (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() {
}