1 error: lifetime may not live long enough
2 --> $DIR/issue-55796.rs:16:9
4 LL | pub trait Graph<'a> {
5 | -- lifetime `'a` defined here
7 LL | Box::new(self.out_edges(u).map(|e| e.target()))
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
10 error: lifetime may not live long enough
11 --> $DIR/issue-55796.rs:21:9
13 LL | pub trait Graph<'a> {
14 | -- lifetime `'a` defined here
16 LL | Box::new(self.in_edges(u).map(|e| e.target()))
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
19 error: aborting due to 2 previous errors