cfdf193c46
Closes #1067
12 lines
197 B
Rust
12 lines
197 B
Rust
|
|
|
|
type recbox<T> = {x: @T};
|
|
|
|
fn reclift<T>(t: T) -> recbox<T> { ret {x: @t}; }
|
|
|
|
fn main() {
|
|
let foo: int = 17;
|
|
let rbfoo: recbox<int> = reclift::<int>(foo);
|
|
assert (*rbfoo.x == foo);
|
|
}
|