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

6 lines
121 B
Rust
Raw Normal View History

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