]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/bound-lifetime-in-return-only.structure.stderr
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
[rust.git] / src / test / ui / associated-types / bound-lifetime-in-return-only.structure.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:29:24
3    |
4 LL |     x: for<'a> fn() -> &'a i32
5    |                        ^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0581`.