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

Open
jamadazi opened this Issue Oct 10, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@jamadazi
Copy link

jamadazi commented Oct 10, 2018

Playground link to reproduce: https://play.rust-lang.org/?gist=697ecc0c55cbf30bee0fb2d87736f704&version=nightly&mode=debug&edition=2018

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