]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / suggestions / fn-needing-specified-return-type-param.stderr
1 error[E0282]: type annotations needed for `fn() -> A`
2   --> $DIR/fn-needing-specified-return-type-param.rs:3:13
3    |
4 LL |     let _ = f;
5    |         -   ^ cannot infer type for type parameter `A` declared on the function `f`
6    |         |
7    |         consider giving this pattern the explicit type `fn() -> A`, where the type parameter `A` is specified
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0282`.