Skip to content

infer variance for region parameters #2282

Closed
@nikomatsakis

Description

@nikomatsakis

It occurs to me that we are always treating regions covariantly. This is clearly wrong. We should either (1) not allow regions to appear in in- or contravariant positions within nominal types or (2) allow variance to be declared. I am leaning towards (1) at the moment.

Metadata

Metadata

Assignees

Labels

A-lifetimesArea: Lifetimes / regions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions