rust/src/test/ui/borrowck/borrowck-init-plus-equal.rs
2018-12-25 21:08:33 -07:00

9 lines
135 B
Rust

fn test() {
let mut v: isize;
v = v + 1; //~ ERROR use of possibly uninitialized variable: `v`
v.clone();
}
fn main() {
}