]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-static-method.nll.stderr
New upstream version 1.30.0+dfsg1
[rustc.git] / src / test / ui / wf / wf-static-method.nll.stderr
CommitLineData
b7449926
XL
1error: unsatisfied lifetime constraints
2 --> $DIR/wf-static-method.rs:27:9
3 |
4LL | impl<'a, 'b> Foo<'a, 'b, Evil<'a, 'b>> for () {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8...
9LL | u //~ ERROR E0312
10 | ^ returning this value requires that `'b` must outlive `'a`
11
12error: unsatisfied lifetime constraints
13 --> $DIR/wf-static-method.rs:43:9
14 |
15LL | impl<'a, 'b> Evil<'a, 'b> {
16 | -- -- lifetime `'b` defined here
17 | |
18 | lifetime `'a` defined here
19LL | fn inherent_evil(u: &'b u32) -> &'a u32 {
20LL | u //~ ERROR E0312
21 | ^ returning this value requires that `'b` must outlive `'a`
22
23error: aborting due to 2 previous errors
24