Open
Description
Important
This type-system feature is currently not on track to be implemented / become part of the language!
Implement the missing type equality constraint specified in RFC 135.
Examples
fn sum<I: Iterator>(_: I) -> i32
where
I::Item == i32 // or `I::Item = i32`
{
// ...
}
Note
As a matter of fact, $type = $type
and $type == $type
are syntactically valid and don't raise any feature gate warning/error if cfg
'ed out! This is likely unintentional and should be ironed out.
Metadata
Metadata
Assignees
Labels
Area: Lazy normalization (tracking issue: #60471)Area: Type systemCategory: An issue tracking the progress of sth. like the implementation of an RFCStatus: There are blocking design concerns.Status: The feature has not been implemented.Relevant to the language team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.