18 lines
205 B
Rust
18 lines
205 B
Rust
// xfail-stage0
|
|
|
|
tag option[T] {
|
|
some(T);
|
|
none;
|
|
}
|
|
|
|
type r[T] = rec(mutable (option[T])[] v);
|
|
|
|
fn f[T]() -> T[] {
|
|
ret ~[];
|
|
}
|
|
|
|
fn main() {
|
|
let r[int] r = rec(mutable v=~[]);
|
|
r.v = f();
|
|
}
|