]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/impl-trait/fallback_inference.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / fallback_inference.stderr
index b637ca694c203e09efd782dc8014f9c7cf8ba380..4ac3c238fe95897e4c30ac43f8f4b242c12b0786 100644 (file)
@@ -1,8 +1,13 @@
 error[E0282]: type annotations needed
-  --> $DIR/fallback_inference.rs:3:27
+  --> $DIR/fallback_inference.rs:4:5
    |
-LL | fn weird() -> PhantomData<impl Sized> {
-   |                           ^^^^^^^^^^ cannot infer type
+LL |     PhantomData
+   |     ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
+   |
+help: consider specifying the generic argument
+   |
+LL |     PhantomData::<T>
+   |                +++++
 
 error: aborting due to previous error