fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
591 B17 linesraw
1error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types
2  --> $DIR/issue-47511.rs:5:15
3   |
4LL | fn f(_: X) -> X {
5   |               ^
6   |
7   = note: lifetimes appearing in an associated type are not considered constrained
8
9error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
10  --> $DIR/issue-47511.rs:10:23
11   |
12LL | fn g<'a>(_: X<'a>) -> X<'a> {
13   |                       ^^^^^
14
15error: aborting due to 2 previous errors
16
17For more information about this error, try `rustc --explain E0581`.