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

explain generalization when talking about type inference #1820

Open
lcnr opened this issue Nov 3, 2023 · 0 comments
Open

explain generalization when talking about type inference #1820

lcnr opened this issue Nov 3, 2023 · 0 comments
Assignees

Comments

@lcnr
Copy link
Contributor

lcnr commented Nov 3, 2023

generalization is a core - and subtle - part of type inference and currently not explained in the guide. We should change that. We should talk about equality in general, the current section only mentions how to use equality, but doesn't actually explain how it works https://rustc-dev-guide.rust-lang.org/type-inference.html?highlight=equate#enforcing-equality--subtyping

@lcnr lcnr self-assigned this Nov 3, 2023
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

1 participant