6 fn nodes<'a, I: Iterator<Item=&'a N>>(&'a self) -> I
10 impl<N: Node> Graph<N> for Vec<N> {
11 fn nodes<'a, I: Iterator<Item=&'a N>>(&self) -> I
14 self.iter() //~ ERROR mismatched types
26 fn iterate<N: Node, G: Graph<N>>(graph: &G) {
27 for node in graph.iter() { //~ ERROR no method named `iter` found
33 let graph = Vec::new();
37 iterate(graph); //~ ERROR mismatched types