]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/bound-lifetime-in-return-only.sig.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / bound-lifetime-in-return-only.sig.stderr
1 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
2   --> $DIR/bound-lifetime-in-return-only.rs:12:28
3    |
4 LL | fn sig1(_: for<'a> fn() -> &'a i32) {
5    |                            ^^^^^^^
6
7 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
8   --> $DIR/bound-lifetime-in-return-only.rs:17:39
9    |
10 LL | fn sig2(_: for<'a, 'b> fn(&'b i32) -> &'a i32) {
11    |                                       ^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0581`.