Fix bug in box-unbox.rs test.
This commit is contained in:
parent
1086a2b7d1
commit
99106e4029
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
type box[T] = tup(@T);
|
||||
|
||||
fn unbox[T](box[T] b) -> T { ret *b._0; }
|
||||
fn unbox[T](&box[T] b) -> T { ret *b._0; }
|
||||
|
||||
fn main() {
|
||||
let int foo = 17;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue