rust/src/test/run-pass/vec-ivec-deadlock.rs

6 lines
131 B
Rust
Raw Normal View History

2012-10-24 11:47:59 -05:00
fn main() {
let a = ~[1, 2, 3, 4, 5];
2012-12-05 18:51:32 -06:00
let mut b = ~[copy a, copy a];
2012-10-24 11:47:59 -05:00
b = b + b; // FIXME(#3387)---can't write b += b
}