Skip to content
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

Async function return type inference fails without an ending return #64392

khionu opened this issue Sep 12, 2019 · 2 comments


Copy link

commented Sep 12, 2019

I have a function of the signature async fn run() -> Result<!, Box<dyn std::error::Error>>. It ends with a loop that, as you may infer, never returns Ok. The inference for code generation failed, and the various compiler errors said that my function actually returned ().


This comment has been minimized.

Copy link

commented Sep 12, 2019

Can you provide a function/ playground that reproduces the errors?


This comment has been minimized.

Copy link

commented Sep 13, 2019

In trying to get a solid reproduction, the issue has disappeared from the codebase I discovered it in. 👻

@khionu khionu closed this Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.