On Sat, Jun 15, 2013 at 6:36 AM, Rémi Fontan <[email protected]> wrote: > I found the following example in the doc > > let a = [100, 200]; > let mut it = a.iter().enumerate(); > > and it prints following when compiling: > > test.rs:32:17: 32:38 error: type `std::vec::VecIterator/&<<VI1>>` does not > implement any method in scope named `enumerate` > test.rs:32 let mut it = a.iter().enumerate(); > > Would you know what I need to do to simply enumerate a vector? > > cheers, > > Remi > > -- > Rémi Fontan : [email protected] > mobile: +64 21 855 351 > 93 Otaki Street, Miramar 6022 > Wellington, New Zealand
You need a more up-to-date build, or you can import IteratorUtil manually. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
