-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A vague error, and I don't know what the problem is #1835
Comments
Possibly related: rust-lang/rust#64650, rust-lang/rust#60658. |
Looks like a compiler bug |
is it the order of Maybe it should be |
Same here 48 | let _ = tokio::spawn(watcher::watch_health(
| ^^^^^^^^^^^^ one type is more general than the other
|
= note: expected type `std::ops::FnOnce<(&&str,)>`
found type `std::ops::FnOnce<(&&str,)>` |
@ernestas-poskus seems like a compiler error, I would report this upstream. |
This seems to be another case of rust-lang/rust#64552. The compiler is "forgetting" that certain regions are |
Closing as this is not our bug. |
version: tokio 0.2.1
I even don’t know where this question should be mentioned, and I feel vague that this should be a rustc problem. If so, please tell me, I will write the problem over rustc again
Example:
will output:
but change
BoxedFutureTask
to()
like follow, it works wellI am very puzzled about this,
Vec<Pin<Box<dyn Future <Output = () >> + 'static + Send >>
is a correct value, and the error here makes me overwhelmed.The text was updated successfully, but these errors were encountered: