Self: 'static
causes GAT outlives lint to needlessly fire
#90888
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
The following code (playground):
Gives an error:
I would have expected the
where Self: 'a
not to be required as we already know thatSelf
outlives'a
as it outlives'static
Meta
rustc version: 1.58.0-nightly (e90c5fb 2021-11-12)
The text was updated successfully, but these errors were encountered: