]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/incomplete-inference.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / incomplete-inference.stderr
index 0cdd4cc8dc3bac32435aa3e1debe2d2d70ca2f35..9a0e71b4eed90d8cfd65f7768fe15688bc3606b1 100644 (file)
@@ -2,7 +2,12 @@ error[E0282]: type annotations needed
   --> $DIR/incomplete-inference.rs:6:5
    |
 LL |     None
-   |     ^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
+   |     ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
+   |
+help: consider specifying the generic argument
+   |
+LL |     None::<T>
+   |         +++++
 
 error: aborting due to previous error