rust/tests/ui/borrowck/borrowck-init-plus-equal.rs
2023-01-11 09:32:08 +00:00

9 lines
97 B
Rust

fn test() {
let mut v: isize;
v = v + 1; //~ ERROR E0381
v.clone();
}
fn main() {
}