]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-self-is-anon.stderr
1 error[E0623]: lifetime mismatch
2 --> $DIR/ex3-both-anon-regions-self-is-anon.rs:7:19
3 |
4 LL | fn foo<'a>(&self, x: &Foo) -> &Foo {
5 | ---- ----
6 | |
7 | this parameter and the return type are declared with different lifetimes...
8 LL | if true { x } else { self }
9 | ^ ...but data from `x` is returned here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0623`.