summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/try-on-option-in-async.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/try-on-option-in-async.stderr')
-rw-r--r--src/test/ui/async-await/try-on-option-in-async.stderr3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/ui/async-await/try-on-option-in-async.stderr b/src/test/ui/async-await/try-on-option-in-async.stderr
index a55850d76..4c7b4fa41 100644
--- a/src/test/ui/async-await/try-on-option-in-async.stderr
+++ b/src/test/ui/async-await/try-on-option-in-async.stderr
@@ -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}`