12 lines
131 B
Rust
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;
|
|
}
|