825fd1808e
- paths can now take region parameters, replacing the dirty hack I was doing before of abusing vstores. vstores are now a bit of a hack though. - fix various small bugs: - we never checked that iface types were compatible when casting to an iface with `as` - we allowed nonsense like int<int> - and more! (actually that may be it)
12 lines
133 B
Rust
12 lines
133 B
Rust
// xfail-test
|
|
|
|
fn foo(x: [uint]/&) -> uint {
|
|
x[0]
|
|
}
|
|
|
|
fn main() {
|
|
let p = [22u]/@;
|
|
let r = foo(p);
|
|
assert r == 22u;
|
|
}
|