`error: the type of this value must be known in this context`

I suspect it's due to collect() being able to work on a lot of iterators so Rust needs a guide as to what type of iterator it can actually expect.