]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-55796.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / issue-55796.stderr
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`
9
10 error: lifetime may not live long enough
11   --> $DIR/issue-55796.rs:21:9
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