]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/user-annotations/wf-self-type.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / user-annotations / wf-self-type.stderr
CommitLineData
9fa01778 1error: lifetime may not live long enough
923072b8 2 --> $DIR/wf-self-type.rs:10:5
0bf4aa26
XL
3 |
4LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
532ac7d7 8LL | Foo::xmute(u)
5099ac24 9 | ^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
60c5eb7d
XL
10 |
11 = help: consider adding the following bound: `'b: 'a`
0bf4aa26
XL
12
13error: aborting due to previous error
14