Skip to content

Check the well-formed-ness of type aliases. #44075

Open
@eddyb

Description

@eddyb

Currently, these compile:

struct Foo<T: Copy>(T);
type X = Foo<String>;
type Y = <() as Iterator>::Item;

Using them does produce an error at the use site, but not in the definition.

Metadata

Metadata

Assignees

Labels

A-type-systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.

Type

No type

Projects

Status

Fixed By

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions