summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-66312.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issue-66312.stderr')
-rw-r--r--tests/ui/async-await/issue-66312.stderr11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/ui/async-await/issue-66312.stderr b/tests/ui/async-await/issue-66312.stderr
index 80d294a10..dad5807cb 100644
--- a/tests/ui/async-await/issue-66312.stderr
+++ b/tests/ui/async-await/issue-66312.stderr
@@ -7,6 +7,13 @@ LL | fn is_some(self: T);
= note: type of `self` must be `Self` or a type that dereferences to it
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
-error: aborting due to previous error
+error[E0308]: mismatched types
+ --> $DIR/issue-66312.rs:9:8
+ |
+LL | if x.is_some() {
+ | ^^^^^^^^^^^ expected `bool`, found `()`
+
+error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0307`.
+Some errors have detailed explanations: E0307, E0308.
+For more information about an error, try `rustc --explain E0307`.