]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-55796.nll.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / issues / issue-55796.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-55796.rs:18: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:23: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