]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/inference/cannot-infer-async.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / inference / cannot-infer-async.rs
index 05f62f3d8cbc0aa4a4bda6647dff130335a26ed8..e7fabd0ffbc8bd178b4457d0c82598b9c5fbccf7 100644 (file)
@@ -8,8 +8,8 @@ fn make_unit() -> Result<(), Error> {
 
 fn main() {
     let fut = async {
-        make_unit()?; //~ ERROR type annotations needed
+        make_unit()?;
 
-        Ok(())
+        Ok(()) //~ ERROR type annotations needed
     };
 }