]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-55796.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-55796.nll.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