GAT: lifetime is inconsistently required with Higher-Rank Trait Bounds #93262
Labels
A-GATs
Area: Generic associated types (GATs)
C-bug
Category: This is a bug.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
I'm getting weird error messages by combining GATs with HRTBs. Here is an example:
This was working fine with rustc 1.58. Now with 1.60 I get the following error message:
There are a couple of weird things going on:
for<'a> <T as Trait>::Assoc<'a>: ...
bound is well formed and should be accepted by the compiler even though thewhere Self: 'a
bound onTrait::Assoc
means thatT
must outlive'a
. I might be wrong here.The text was updated successfully, but these errors were encountered: