]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-13853.stderr
New upstream version 1.32.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-13853.stderr
CommitLineData
8faf50e0
XL
1error[E0308]: mismatched types
2 --> $DIR/issue-13853.rs:24:9
3 |
4LL | fn nodes<'a, I: Iterator<Item=&'a N>>(&self) -> I
5 | - expected `I` because of return type
6...
7LL | self.iter() //~ ERROR mismatched types
8 | ^^^^^^^^^^^ expected type parameter, found struct `std::slice::Iter`
9 |
10 = note: expected type `I`
11 found type `std::slice::Iter<'_, N>`
12
13error[E0599]: no method named `iter` found for type `&G` in the current scope
14 --> $DIR/issue-13853.rs:37:23
15 |
16LL | for node in graph.iter() { //~ ERROR no method named `iter` found
17 | ^^^^
18
19error[E0308]: mismatched types
20 --> $DIR/issue-13853.rs:47:13
21 |
22LL | iterate(graph); //~ ERROR mismatched types
23 | ^^^^^
24 | |
25 | expected reference, found struct `std::vec::Vec`
26 | help: consider borrowing here: `&graph`
27 |
28 = note: expected type `&_`
29 found type `std::vec::Vec<Stuff>`
30
31error: aborting due to 3 previous errors
32
33Some errors occurred: E0308, E0599.
34For more information about an error, try `rustc --explain E0308`.