]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / async-await / await-keyword / incorrect-syntax-suggestions.rs
index cebff3be6b059299f47d7548fa38b0d56fb1c771..337487fc80b0e56ffd8e13bddad30c6a4b51ba28 100644 (file)
@@ -14,7 +14,7 @@ async fn foo2() -> Result<(), ()> {
 }
 async fn foo3() -> Result<(), ()> {
     let _ = await bar()?; //~ ERROR incorrect use of `await`
-    //~^ ERROR the `?` operator can only be applied to values that implement `std::ops::Try`
+    //~^ ERROR the `?` operator can only be applied to values that implement `Try`
     Ok(())
 }
 async fn foo21() -> Result<(), ()> {
@@ -62,7 +62,7 @@ fn foo10() -> Result<(), ()> {
 fn foo11() -> Result<(), ()> {
     let _ = await bar()?; //~ ERROR `await` is only allowed inside `async` functions and blocks
     //~^ ERROR incorrect use of `await`
-    //~| ERROR the `?` operator can only be applied to values that implement `std::ops::Try`
+    //~| ERROR the `?` operator can only be applied to values that implement `Try`
     Ok(())
 }
 fn foo12() -> Result<(), ()> {