[rust-dev] box syntax question

Oscar Boykin oscar at twitter.com
Wed Jul 2 19:29:32 PDT 2014

Once in the tutorial, I see this syntax:

let x = box(GC) [1i, 2, 3, 4, 5, 6, 7, 8, 9, 10];

It seems to me, that should be: box<Gc>, as it feels like box is referring
to a container type (which the default type is Box<_>, but may be Rc<_> or

What is the principle behind the current notation? What is "GC" is this
context other than a special string that is a one-off syntax?
Oscar Boykin :: @posco :: http://twitter.com/posco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140702/ad762e17/attachment.html>

More information about the Rust-dev mailing list