return bcx;
}
+ // Some cleanup would be required in the case in which failure happens
+ // during a copy. But given that copy constructors are not overridable,
+ // this can only happen as a result of OOM. So we just skip out on the
+ // cleanup since things would *probably* be broken at that point anyways.
+
let elem = unpack_datum!(bcx, {
expr::trans_to_datum(bcx, element)
});
// except according to those terms.
pub fn main() {
+ struct Foo { a: ~str }
+
+ let v = [ ~Foo { a: ~"Hello!" }, ..129 ];
+ let w = [ ~"Hello!", ..129 ];
let x = [ @[true], ..512 ];
let y = [ 0, ..1 ];
+
+ error!("%?", v);
+ error!("%?", w);
error!("%?", x);
error!("%?", y);
}