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
| ----------------- required by this bound in `bar`
9
9
...
10
10
LL | bar(foo);
11
-
| ^^^ the trait `std::future::Future` is not implemented for `fn() -> impl std::future::Future {foo}`
11
+
| ^^^ `fn() -> impl std::future::Future {foo}` is not a future
12
12
|
13
+
= help: the trait `std::future::Future` is not implemented for `fn() -> impl std::future::Future {foo}`
13
14
help: use parentheses to call the function
14
15
|
15
16
LL | bar(foo());
16
17
| ^^
17
18
18
-
error[E0277]: the trait bound `[closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36]: std::future::Future` is not satisfied
19
+
error[E0277]: `[closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36]` is not a future
| ^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36]`
28
+
| ^^^^^^^^^^^^^ `[closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36]` is not a future
28
29
|
30
+
= help: the trait `std::future::Future` is not implemented for `[closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36]`
0 commit comments