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
| --------- expected `<Implementor as Foo>::Fut` because of return type
6
+
LL |
7
+
LL | / async move {
8
+
LL | |
9
+
LL | | 42
10
+
LL | | // 42 does not impl Future and rustc does actually point out the error,
11
+
LL | | // but rustc used to panic.
12
+
LL | | // Putting a valid Future here always worked fine.
13
+
LL | | }
14
+
| |_________^ types differ
15
+
|
16
+
= note: expected associated type `<Implementor as Foo>::Fut`
17
+
found `async` block `{async block@$DIR/issue-83919.rs:25:9: 31:10}`
18
+
= help: consider constraining the associated type `<Implementor as Foo>::Fut` to `{async block@$DIR/issue-83919.rs:25:9: 31:10}` or calling a method that returns `<Implementor as Foo>::Fut`
19
+
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
20
+
21
+
error: aborting due to previous error
22
+
23
+
For more information about this error, try `rustc --explain E0308`.
0 commit comments