Incorrect unused parameter with GAT #80766
Labels
A-GATs
Area: Generic associated types (GATs)
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
requires-nightly
This issue requires a nightly compiler in some way.
I tried this code:
I got this error:
I think it doesn't make sense since
'a
is used in the fieldf
, if I add thePhantomData
like suggested, it works fine.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: