]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/suggest-missing-await.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-missing-await.stderr
index ccca97ec204b46c5f241cba5711cfea4ae9e6955..7ab024434b2bf86250d4c2db32263b20e8259be3 100644 (file)
@@ -4,12 +4,29 @@ error[E0308]: mismatched types
 LL |     take_u32(x)
    |              ^
    |              |
-   |              expected u32, found opaque type
+   |              expected `u32`, found opaque type
    |              help: consider using `.await` here: `x.await`
    |
-   = note: expected type `u32`
-              found type `impl std::future::Future`
+   = note:     expected type `u32`
+           found opaque type `impl std::future::Future`
 
-error: aborting due to previous error
+error[E0308]: mismatched types
+  --> $DIR/suggest-missing-await.rs:23:5
+   |
+LL |     dummy()
+   |     ^^^^^^^ expected `()`, found opaque type
+   |
+   = note: expected unit type `()`
+            found opaque type `impl std::future::Future`
+help: try adding a semicolon
+   |
+LL |     dummy();
+   |            ^
+help: consider using `.await` here
+   |
+LL |     dummy().await
+   |
+
+error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0308`.