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

12 lines
131 B
Rust

// xfail-test
fn foo(x: &[uint]) -> uint {
x[0]
}
fn main() {
let p = @[22u];
let r = foo(p);
assert r == 22u;
}