Closed
Description
I accidentally wrote:
for p in foo() { ... }
where foo
returns a vector. The error:
search.rs:31:4: 37:8 error: type `&mut ~[std::path::PosixPath]` does not implement any method in scope named `next`
was not exactly useful. The problem was that I left out the .iter()
after foo()
. But my first instinct would be to look for where I'm calling next()
, and I'm not calling it explicitly.