Thanks Patrick! -- Ziad
On Wed, May 15, 2013 at 12:29 PM, Patrick Walton <pwal...@mozilla.com>wrote: > On 5/15/13 12:12 PM, Ziad Hatahet wrote: > >> >> fn main() { >> >> let test = getOneOfThese<Foo>(); >> >> } >> > > You can't specify type parameters explicitly here; instead you need to use > `let test: Foo = ...`. > > In the future you'll be able to write something like: > > impl F = Newable for Foo; > let test = F::getOneOfThese(); > > This isn't implemented yet, however (nor is it likely to appear before > Rust 1.0). > > Patrick > >
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev