summary refs log tree commit diff
path: root/src/test/ui/issue-13853.stderr
blob: 188bfd5930105777a9bf15848695388ca13101ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error[E0308]: mismatched types
  --> $DIR/issue-13853.rs:24:9
   |
LL |     fn nodes<'a, I: Iterator<Item=&'a N>>(&self) -> I
   |                                                     - expected `I` because of return type
...
LL |         self.iter() //~ ERROR mismatched types
   |         ^^^^^^^^^^^ expected type parameter, found struct `std::slice::Iter`
   |
   = note: expected type `I`
              found type `std::slice::Iter<'_, N>`

error[E0599]: no method named `iter` found for type `&G` in the current scope
  --> $DIR/issue-13853.rs:37:23
   |
LL |     for node in graph.iter() { //~ ERROR no method named `iter` found
   |                       ^^^^

error[E0308]: mismatched types
  --> $DIR/issue-13853.rs:47:13
   |
LL |     iterate(graph); //~ ERROR mismatched types
   |             ^^^^^
   |             |
   |             expected reference, found struct `std::vec::Vec`
   |             help: consider borrowing here: `&graph`
   |
   = note: expected type `&_`
              found type `std::vec::Vec<Stuff>`

error: aborting due to 3 previous errors

Some errors occurred: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.