Skip to content

type inference chapter should talk about opaque types #1187

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

Closed
oli-obk opened this issue Aug 10, 2021 · 4 comments
Closed

type inference chapter should talk about opaque types #1187

oli-obk opened this issue Aug 10, 2021 · 4 comments
Assignees
Labels
E-medium Difficulty: might require some prior knowledge or code reading

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Aug 10, 2021

Opaque types (impl Trait) uses inference variables in several situations. We should explain how that works (with examples!), both for impl trait in return position and type alias impl trait.

@oli-obk oli-obk added the E-medium Difficulty: might require some prior knowledge or code reading label Aug 10, 2021
@oli-obk oli-obk self-assigned this Aug 10, 2021
@smanilov
Copy link
Contributor

smanilov commented Jun 1, 2025

Not only do I think this chapter has been written since the issue was opened... but I think it's even outdated :D (It's how I found this issue.)

Here's the chapter: https://rustc-dev-guide.rust-lang.org/opaque-types-impl-trait-inference.html

I think we can close this one, and open another one to track the updating of the chapter. Or maybe we can just track it here. Here's one PR towards that goal: #2429

@smanilov
Copy link
Contributor

smanilov commented Jun 1, 2025

Also #2435

@smanilov
Copy link
Contributor

smanilov commented Jun 2, 2025

In my opinion as a noob, it seems that there is no more updating of the chapter necessary at this point. Its quality is of acceptable level, when compared to the rest of the documentation.

@oli-obk oli-obk closed this as completed Jun 3, 2025
@oli-obk
Copy link
Contributor Author

oli-obk commented Jun 3, 2025

Thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-medium Difficulty: might require some prior knowledge or code reading
Projects
None yet
Development

No branches or pull requests

2 participants