Trait bound requiring the same trait with different lifetimes results in a compile error #129950
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected this code to compile, but instead I got this error:
Meta
Reproduces on the playground on "Stable version: 1.80.1" and "Nightly version: 1.83.0-nightly (2024-09-03 d6c8169)"
This compiles in rust 1.3.0. ICEs in rust 1.4.0-1.6.0. Fails to compile in rust 1.7.0.
The text was updated successfully, but these errors were encountered: