]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: lifetime may not live long enough |
5099ac24 | 2 | --> $DIR/issue-55796.rs:16:9 |
48663c56 XL |
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` | |
9 | ||
10 | error: lifetime may not live long enough | |
5099ac24 | 11 | --> $DIR/issue-55796.rs:21:9 |
48663c56 XL |
12 | | |
13 | LL | pub trait Graph<'a> { | |
14 | | -- lifetime `'a` defined here | |
15 | ... | |
16 | LL | Box::new(self.in_edges(u).map(|e| e.target())) | |
17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static` | |
18 | ||
19 | error: aborting due to 2 previous errors | |
20 |