Incorrect trait bounds check #88287
Labels
A-GATs
Area: Generic associated types (GATs)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d372b241527aa63df526377bfc532b31
I expected to see this happen: It compiles or gives me a detailed error.
Instead, this happened: Compiler suggests to add an already existing trait bound. Adding it one more time leads to compiler suggesting adding it once more and so on.
While the code example uses GAT and TAIT, I'm not entirely sure both of those features are required to reproduce the issue.
@rustbot label +T-compiler +F-type_alias_impl_trait +F-generic_associated_types +A-traits +requires-nightly
The text was updated successfully, but these errors were encountered: