2012-04-24 15:52:52 -07:00
|
|
|
// xfail-test
|
2012-04-13 13:36:39 -07:00
|
|
|
|
2012-06-29 16:26:56 -07:00
|
|
|
fn foo(x: &[uint]) -> uint {
|
2012-04-13 13:36:39 -07:00
|
|
|
x[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-29 16:26:56 -07:00
|
|
|
let p = @[22u];
|
2012-04-13 13:36:39 -07:00
|
|
|
let r = foo(p);
|
|
|
|
assert r == 22u;
|
|
|
|
}
|