Last active
August 29, 2015 14:07
-
-
Save danlucraft/46254ec506bbb4969818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a: Vec<Vec<uint>> = vec![]; | |
let b: Vec<Vec<uint>> = a.iter().collect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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