The syntax is ambiguous:

let foo = (HashMap<Foo, Bar>new());

is foo a HashMap<Foo, Bar>, or is it a tuple containing the results of
these two comparisons: HashMap < Foo and Bar > new()?

On Tue Nov 18 2014 at 1:38:26 PM Daniel Trstenjak <
[email protected]> wrote:

>
> Dear rust devs,
>
> is there a reason why it's e.g.:
>
>    let vec = Vec::<int>::new();
>    let vec = vec.iter().map(|i| *i + 1).collect::<Vec<int>>();
>
> instead of:
>
>    let vec = Vec<int>::new();
>    let vec = vec.iter().map(|i| *i + 1).collect<Vec<int>>();
>
>
> Thanks for any hints!
>
>
> Greetings,
> Daniel
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to