mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Box arguments that are supposed to be boxed.
This commit is contained in:
parent
f0faeaed25
commit
60c6ae3ad5
@ -1,6 +1,6 @@
|
||||
type option[T] = tag(some(@T), none());
|
||||
|
||||
fn main() {
|
||||
let option[int] a = some[int](10);
|
||||
let option[int] a = some[int](@10);
|
||||
a = none[int]();
|
||||
}
|
@ -3,5 +3,5 @@
|
||||
type list = tag(cons(int,@list), nil());
|
||||
|
||||
fn main() {
|
||||
cons(10, cons(11, cons(12, nil())));
|
||||
cons(10, @cons(11, @cons(12, @nil())));
|
||||
}
|
||||
|
@ -3,5 +3,5 @@
|
||||
type mlist = tag(cons(int,mutable @mlist), nil());
|
||||
|
||||
fn main() {
|
||||
cons(10, cons(11, cons(12, nil())));
|
||||
cons(10, @cons(11, @cons(12, @nil())));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user