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