about summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-init-plus-equal.rs
blob: afb384b24d599c4a037dc953dcf6a67def633b02 (plain)
1
2
3
4
5
6
7
8
fn test() {
    let mut v: int;
    v = v + 1; //~ ERROR use of possibly uninitialized variable: `v`
    copy v;
}

fn main() {
}