Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Last active August 29, 2015 14:07
Show Gist options
  • Save danlucraft/46254ec506bbb4969818 to your computer and use it in GitHub Desktop.
Save danlucraft/46254ec506bbb4969818 to your computer and use it in GitHub Desktop.
let a: Vec<Vec<uint>> = vec![];
let b: Vec<Vec<uint>> = a.iter().collect();
012.rs:82:29: 82:47 error: type mismatch: the type `collections::vec::Vec<collections::vec::Vec<uint>>`
implements the trait `core::iter::FromIterator<collections::vec::Vec<uint>>`, but the trait
`core::iter::FromIterator<&collections::vec::Vec<uint>>` is required (expected &-ptr, found struct
collections::vec::Vec)
012.rs:82 let b: Vec<Vec<uint>> = a.iter().collect();
^~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment