]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/bound-lifetime-in-binding-only.elision.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / bound-lifetime-in-binding-only.elision.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/bound-lifetime-in-binding-only.rs:52:23
3    |
4 LL | fn elision<T: Fn() -> &i32>() {
5    |                       ^ expected named lifetime parameter
6    |
7    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
8 help: consider using the `'static` lifetime
9    |
10 LL | fn elision<T: Fn() -> &'static i32>() {
11    |                        +++++++
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0106`.