summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-55796.stderr
blob: 5809a56cd4b6b638d5f6811fd8b72d28aebae0ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: lifetime may not live long enough
  --> $DIR/issue-55796.rs:16:9
   |
LL | pub trait Graph<'a> {
   |                 -- lifetime `'a` defined here
...
LL |         Box::new(self.out_edges(u).map(|e| e.target()))
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`

error: lifetime may not live long enough
  --> $DIR/issue-55796.rs:21:9
   |
LL | pub trait Graph<'a> {
   |                 -- lifetime `'a` defined here
...
LL |         Box::new(self.in_edges(u).map(|e| e.target()))
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`

error: aborting due to 2 previous errors