Skip to content

Instantly share code, notes, and snippets.

@NotBobTheBuilder
Created September 13, 2014 13:12
Show Gist options
  • Save NotBobTheBuilder/8e2283077d8fdabcc200 to your computer and use it in GitHub Desktop.
Save NotBobTheBuilder/8e2283077d8fdabcc200 to your computer and use it in GitHub Desktop.
Minimum Breaking Example
extern crate num;
use num::bigint::BigUint;
use std::collections::treemap::TreeSet;
fn main() {
let primes = TreeSet<BigUint>::new();
}
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
@NotBobTheBuilder
Copy link
Author

Fixed by TreeSet::<BigUint> (with the double colon). Also note import should be std::collections::TreeSet (without treemap)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment