1 error[E0601]: `main` function not found in crate `issue_55796`
3 = note: consider adding a `main` function to `$DIR/issue-55796.rs`
5 error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
6 --> $DIR/issue-55796.rs:16:9
8 LL | Box::new(self.out_edges(u).map(|e| e.target()))
9 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 note: first, the lifetime cannot outlive the lifetime 'a as defined on the trait at 5:17...
12 --> $DIR/issue-55796.rs:5:17
14 LL | pub trait Graph<'a> {
16 note: ...so that the type `std::iter::Map<<Self as Graph<'a>>::EdgesIter, [closure@$DIR/issue-55796.rs:16:40: 16:54]>` will meet its required lifetime bounds
17 --> $DIR/issue-55796.rs:16:9
19 LL | Box::new(self.out_edges(u).map(|e| e.target()))
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 = note: but, the lifetime must be valid for the static lifetime...
22 = note: ...so that the expression is assignable:
23 expected std::boxed::Box<(dyn std::iter::Iterator<Item=<Self as Graph<'a>>::Node> + 'static)>
24 found std::boxed::Box<dyn std::iter::Iterator<Item=<Self as Graph<'a>>::Node>>
26 error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
27 --> $DIR/issue-55796.rs:21:9
29 LL | Box::new(self.in_edges(u).map(|e| e.target()))
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 note: first, the lifetime cannot outlive the lifetime 'a as defined on the trait at 5:17...
33 --> $DIR/issue-55796.rs:5:17
35 LL | pub trait Graph<'a> {
37 note: ...so that the type `std::iter::Map<<Self as Graph<'a>>::EdgesIter, [closure@$DIR/issue-55796.rs:21:39: 21:53]>` will meet its required lifetime bounds
38 --> $DIR/issue-55796.rs:21:9
40 LL | Box::new(self.in_edges(u).map(|e| e.target()))
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 = note: but, the lifetime must be valid for the static lifetime...
43 = note: ...so that the expression is assignable:
44 expected std::boxed::Box<(dyn std::iter::Iterator<Item=<Self as Graph<'a>>::Node> + 'static)>
45 found std::boxed::Box<dyn std::iter::Iterator<Item=<Self as Graph<'a>>::Node>>
47 error: aborting due to 3 previous errors
49 Some errors occurred: E0495, E0601.
50 For more information about an error, try `rustc --explain E0495`.