Skip to content

Instantly share code, notes, and snippets.

@jroweboy
Created March 14, 2014 03:29
Show Gist options
  • Save jroweboy/9541653 to your computer and use it in GitHub Desktop.
Save jroweboy/9541653 to your computer and use it in GitHub Desktop.
no method next on vector
// snip
pub fn new(routes: ~[RegexRoute]) -> RegexRouter {
let mut rev_map = HashMap::<~str,~str>::new();
for route in routes {
match route {
// snip
error: type `&mut ~[route::regexrouter::RegexRoute]` does not implement any method in scope named `next`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment