summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/fn-needing-specified-return-type-param.stderr
blob: 9dea667fb961ed4e45304e40016b519e1a7890d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0282]: type annotations needed
  --> $DIR/fn-needing-specified-return-type-param.rs:3:13
   |
LL |     let _ = f;
   |             ^ cannot infer type of the type parameter `A` declared on the function `f`
   |
help: consider specifying the generic argument
   |
LL |     let _ = f::<A>;
   |              +++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.