Created
September 13, 2014 13:12
-
-
Save NotBobTheBuilder/8e2283077d8fdabcc200 to your computer and use it in GitHub Desktop.
Minimum Breaking Example
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
extern crate num; | |
use num::bigint::BigUint; | |
use std::collections::treemap::TreeSet; | |
fn main() { | |
let primes = TreeSet<BigUint>::new(); | |
} |
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
minwe.rs:7:18: 7:25 error: unresolved name `TreeSet`. | |
minwe.rs:7 let primes = TreeSet<BigUint>::new(); | |
^~~~~~~ | |
minwe.rs:7:26: 7:33 error: unresolved name `BigUint`. | |
minwe.rs:7 let primes = TreeSet<BigUint>::new(); | |
^~~~~~~ | |
minwe.rs:7:34: 7:39 error: unresolved name `new`. | |
minwe.rs:7 let primes = TreeSet<BigUint>::new(); | |
^~~~~ | |
error: aborting due to 3 previous errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed by
TreeSet::<BigUint>
(with the double colon). Also note import should bestd::collections::TreeSet
(withouttreemap
)