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 fn: 'static lifetime not inferred for Arc trait object #54974

jamadazi opened this Issue Oct 10, 2018 · 0 comments


None yet
2 participants
Copy link

jamadazi commented Oct 10, 2018

Playground link to reproduce:

Changing the suggested type to Arc<SomeTrait + 'static> fixes the compiler error.

Having to manually specify this does not seem intentional. Perhaps this 'static lifetime should be automatically inferred?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment