rust/src/test/run-pass/regions-borrow-evec-at.rs

12 lines
151 B
Rust
Raw Normal View History

2012-04-13 15:36:39 -05:00
// xfail-test it don't work yet
fn foo(x: [uint]/&) -> uint {
x[0]
}
fn main() {
let p = [22u]/@;
let r = foo(p);
assert r == 22u;
}