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
= note: type of `self` must be `Self` or a type that dereferences to it
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
+
1
10
error[E0038]: the trait `Foo` cannot be made into an object
= note: type of `self` must be `Self` or a type that dereferences to it
23
-
= 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`)
24
-
25
25
error: aborting due to 2 previous errors
26
26
27
27
Some errors have detailed explanations: E0038, E0307.
Copy file name to clipboardExpand all lines: tests/ui/async-await/issue-66312.stderr
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,3 @@
1
-
error[E0308]: mismatched types
2
-
--> $DIR/issue-66312.rs:9:8
3
-
|
4
-
LL | if x.is_some() {
5
-
| ^^^^^^^^^^^ expected `bool`, found `()`
6
-
7
1
error[E0307]: invalid `self` parameter type: `T`
8
2
--> $DIR/issue-66312.rs:4:22
9
3
|
@@ -13,6 +7,12 @@ LL | fn is_some(self: T);
13
7
= note: type of `self` must be `Self` or a type that dereferences to it
14
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`)
15
9
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
16
error: aborting due to 2 previous errors
17
17
18
18
Some errors have detailed explanations: E0307, E0308.
0 commit comments