]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/try-on-option-in-async.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / async-await / try-on-option-in-async.stderr
index a55850d76c3d8c2e2b5818baad2cffd9b46cb1a0..4c7b4fa41faea36ba109d7d9e4b1fde4cc1e0836 100644 (file)
@@ -1,8 +1,7 @@
 error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`)
   --> $DIR/try-on-option-in-async.rs:8:10
    |
-LL |       async {
-   |  ___________-
+LL | /     async {
 LL | |         let x: Option<u32> = None;
 LL | |         x?;
    | |          ^ cannot use the `?` operator in an async block that returns `{integer}`