rust/src/test/run-pass/borrowck-fixed-length-vecs.rs

5 lines
73 B
Rust
Raw Normal View History

2012-06-14 18:27:44 -05:00
fn main() {
let x = [22]/1;
let y = &x[0];
assert *y == 22;
}