rust/src/test/run-pass/borrowck-fixed-length-vecs.rs
2012-06-19 11:52:39 -07:00

5 lines
73 B
Rust

fn main() {
let x = [22]/1;
let y = &x[0];
assert *y == 22;
}