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

Tracking issue for using impl Trait in more places #171

Closed
carols10cents opened this issue Jun 14, 2019 · 1 comment
Closed

Tracking issue for using impl Trait in more places #171

carols10cents opened this issue Jun 14, 2019 · 1 comment

Comments

@carols10cents
Copy link
Member

Rust tracking issue: rust-lang/rust#34511

Place that will need to be updated: https://github.com/rust-lang-nursery/edition-guide/blame/68c458b9b68edced39aebea60e672a22d4d50edf/src/rust-2018/trait-system/impl-trait-for-returning-complex-types-with-ease.md#L161-L168

Using impl Trait in more places

As previously mentioned, as a start, you will only be able to use impl Trait as the argument or return type of a free or inherent function. However, impl Trait can't be used inside implementations of traits, nor can it be used as the type of a let binding or inside a type alias. Some of these restrictions will eventually be lifted. For more information, see the tracking issue on impl Trait.

@ehuss
Copy link
Contributor

ehuss commented May 25, 2021

Closing per #232, this section has been removed. Hopefully has new language changes are stabilized, other documentation will get updated.

@ehuss ehuss closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants