Skip to content

explain generalization when talking about type inference #1820

Open
@lcnr

Description

@lcnr

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

Metadata

Metadata

Assignees

Labels

A-inferenceArea: type inferenceE-hardDifficulty: might require advanced knowledgeI-terseIssue: info is very terseT-typesRelevant to types team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions