]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-47511.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-47511.stderr
1 error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types
2 --> $DIR/issue-47511.rs:8:15
3 |
4 LL | fn f(_: X) -> X {
5 | ^
6 |
7 = note: lifetimes appearing in an associated or opaque type are not considered constrained
8 = note: consider introducing a named lifetime parameter
9
10 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
11 --> $DIR/issue-47511.rs:12:23
12 |
13 LL | fn g<'a>(_: X<'a>) -> X<'a> {
14 | ^^^^^
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0581`.