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