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
Labels
A-inference Area: type inference E-hard Difficulty: might require advanced knowledge I-terse Issue: info is very terse T-types Relevant to types team

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
@jieyouxu jieyouxu added E-hard Difficulty: might require advanced knowledge C-enhancement Category: enhancement I-terse Issue: info is very terse T-types Relevant to types team A-inference Area: type inference and removed C-enhancement Category: enhancement labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-inference Area: type inference E-hard Difficulty: might require advanced knowledge I-terse Issue: info is very terse T-types Relevant to types team
Projects
None yet
Development

No branches or pull requests

2 participants