]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex1-return-one-existing-name-early-bound-in-struct.stderr
1 error[E0621]: explicit lifetime required in the type of `other`
2 --> $DIR/ex1-return-one-existing-name-early-bound-in-struct.rs:11:21
3 |
4 LL | fn bar(&self, other: Foo) -> Foo<'a> {
5 | --- help: add explicit lifetime `'a` to the type of `other`: `Foo<'a>`
6 ...
7 LL | other
8 | ^^^^^ lifetime `'a` required
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0621`.