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

7 lines
169 B
Rust
Raw Normal View History

fn main() {
let arr = [1,2,3]/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 }");
}