]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-inference/unbounded-type-param-in-fn.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / type-inference / unbounded-type-param-in-fn.stderr
index 45d879d8d5670647ccf57e766b3dc8a013f438c1..d92892eeb84eda01096f4091e8c825897287c92f 100644 (file)
@@ -2,7 +2,12 @@ error[E0282]: type annotations needed
   --> $DIR/unbounded-type-param-in-fn.rs:6:5
    |
 LL |     foo();
-   |     ^^^ cannot infer type for type parameter `T` declared on the function `foo`
+   |     ^^^ cannot infer type of the type parameter `T` declared on the function `foo`
+   |
+help: consider specifying the generic argument
+   |
+LL |     foo::<T>();
+   |        +++++
 
 error: aborting due to previous error