relating higher-ranked projections can unexpectedly constrain inference #107268
Labels
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-inference
Area: Type inference
C-bug
Category: This is a bug.
P-medium
Medium priority
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The following compiles (although it shouldn't, arguably, see below for reasoning): https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=05d31c1cc2a9e8752d7a3fc05e9446ea
It stops compiling with a trivial change that gets rid of higher-ranked regions:
This was discovered by @BoxyUwU in #96912.
@rustbot label T-types C-bug I-unsound A-inference
The text was updated successfully, but these errors were encountered: