You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/async-await/issue-66312.stderr
+9-2
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,13 @@ LL | fn is_some(self: T);
7
7
= note: type of `self` must be `Self` or a type that dereferences to it
8
8
= 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`)
9
9
10
-
error: aborting due to previous error
10
+
error[E0308]: mismatched types
11
+
--> $DIR/issue-66312.rs:9:8
12
+
|
13
+
LL | if x.is_some() {
14
+
| ^^^^^^^^^^^ expected `bool`, found `()`
15
+
16
+
error: aborting due to 2 previous errors
11
17
12
-
For more information about this error, try `rustc --explain E0307`.
18
+
Some errors have detailed explanations: E0307, E0308.
19
+
For more information about an error, try `rustc --explain E0307`.
0 commit comments