rust/src/test/run-pass/fixed_length_vec_glue.rs

7 lines
167 B
Rust
Raw Normal View History

fn main() {
2012-10-09 23:28:04 -05:00
let arr = [1,2,3];
let struc = {a: 13u8, b: arr, c: 42};
2012-09-20 17:37:43 -05:00
let s = sys::log_str(&struc);
assert(s == ~"{ a: 13, b: [ 1, 2, 3 ], c: 42 }");
}