]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error: lifetime may not live long enough |
2 | --> $DIR/issue-55796.rs:16:9 | |
3 | | | |
4 | LL | pub trait Graph<'a> { | |
5 | | -- lifetime `'a` defined here | |
6 | ... | |
7 | LL | Box::new(self.out_edges(u).map(|e| e.target())) | |
8 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static` | |
60c5eb7d XL |
9 | | |
10 | = help: consider replacing `'a` with `'static` | |
48663c56 XL |
11 | |
12 | error: lifetime may not live long enough | |
13 | --> $DIR/issue-55796.rs:21:9 | |
14 | | | |
15 | LL | pub trait Graph<'a> { | |
16 | | -- lifetime `'a` defined here | |
17 | ... | |
18 | LL | Box::new(self.in_edges(u).map(|e| e.target())) | |
19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static` | |
60c5eb7d XL |
20 | | |
21 | = help: consider replacing `'a` with `'static` | |
48663c56 XL |
22 | |
23 | error: aborting due to 2 previous errors | |
24 |