rust/src/test/run-pass/vec-ivec-deadlock.rs
2012-12-05 16:51:32 -08:00

6 lines
131 B
Rust

fn main() {
let a = ~[1, 2, 3, 4, 5];
let mut b = ~[copy a, copy a];
b = b + b; // FIXME(#3387)---can't write b += b
}