]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/bound-lifetime-in-return-only.local.stderr
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor
[rust.git] / tests / ui / associated-types / bound-lifetime-in-return-only.local.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:23:28
3    |
4 LL |     let _: for<'a> fn() -> &'a i32 = loop { };
5    |                            ^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0581`.