1 error[E0308]: mismatched types
2 --> $DIR/issue-13853.rs:14:9
4 LL | fn nodes<'a, I: Iterator<Item=&'a N>>(&self) -> I
5 | - expected `I` because of return type
8 | ^^^^^^^^^^^ expected type parameter, found struct `std::slice::Iter`
10 = note: expected type `I`
11 found type `std::slice::Iter<'_, N>`
13 error[E0599]: no method named `iter` found for type `&G` in the current scope
14 --> $DIR/issue-13853.rs:27:23
16 LL | for node in graph.iter() {
17 | ^^^^ method not found in `&G`
19 error[E0308]: mismatched types
20 --> $DIR/issue-13853.rs:37:13
25 | expected reference, found struct `std::vec::Vec`
26 | help: consider borrowing here: `&graph`
28 = note: expected type `&_`
29 found type `std::vec::Vec<Stuff>`
31 error: aborting due to 3 previous errors
33 Some errors have detailed explanations: E0308, E0599.
34 For more information about an error, try `rustc --explain E0308`.