-
- Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Description
trait Trait<'a> { type Assoc; } fn foo<T: for<'a> Trait<'a>>() -> for<'a> fn(<T as Trait<'a>>::Assoc) { todo!() } fn bar<T: for<'a> Trait<'a>>() { let _: for<'a> fn(<_ as Trait<'a>>::Assoc) = foo::<T>(); }This changed from an ICE on stable to compiling on beta and nightly: https://godbolt.org/z/E45bfa1d1
this shouldn't happen unintentionally and afaik we haven't added a test for this behavior either.
It would be very good to figure out which PR is responsible for this change.
aliemjay
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.