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
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to