]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/issues/issue-65159.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / async-await / issues / issue-65159.stderr
index 56d2c38b302e9319d2f3175d8095e697d42bc002..04cfa5249982e144659df44ee10a52fcfb025de8 100644 (file)
@@ -4,6 +4,13 @@ error[E0107]: wrong number of type arguments: expected 2, found 1
 LL | async fn copy() -> Result<()>
    |                    ^^^^^^^^^^ expected 2 type arguments
 
-error: aborting due to previous error
+error[E0282]: type annotations needed
+  --> $DIR/issue-65159.rs:7:5
+   |
+LL |     Ok(())
+   |     ^^ cannot infer type for type parameter `E` declared on the enum `Result`
+
+error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0107`.
+Some errors have detailed explanations: E0107, E0282.
+For more information about an error, try `rustc --explain E0107`.