]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / async-await / await-keyword / incorrect-syntax-suggestions.stderr
index 96158fc0e0496c3d76567aa2bed84aa9530e311d..6a653fc060b1d4ecbf65e2dd4ec90f05fc35e921 100644 (file)
@@ -233,26 +233,26 @@ LL |     let foo = || {
 LL |         let _ = await!(bar())?;
    |                 ^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
 
-error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
+error[E0277]: the `?` operator can only be applied to values that implement `Try`
   --> $DIR/incorrect-syntax-suggestions.rs:16:19
    |
 LL |     let _ = await bar()?;
    |                   ^^^^^^
    |                   |
-   |                   the `?` operator cannot be applied to type `impl std::future::Future`
+   |                   the `?` operator cannot be applied to type `impl Future`
    |                   help: consider using `.await` here: `bar().await?`
    |
-   = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future`
-   = note: required by `std::ops::Try::into_result`
+   = help: the trait `Try` is not implemented for `impl Future`
+   = note: required by `into_result`
 
-error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
+error[E0277]: the `?` operator can only be applied to values that implement `Try`
   --> $DIR/incorrect-syntax-suggestions.rs:63:19
    |
 LL |     let _ = await bar()?;
-   |                   ^^^^^^ the `?` operator cannot be applied to type `impl std::future::Future`
+   |                   ^^^^^^ the `?` operator cannot be applied to type `impl Future`
    |
-   = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future`
-   = note: required by `std::ops::Try::into_result`
+   = help: the trait `Try` is not implemented for `impl Future`
+   = note: required by `into_result`
 
 error: aborting due to 36 previous errors