Associated constants inside array repeat expression don't use implied bounds from impl header during well-formedness checking #89236
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-implied-bounds
Area: Implied bounds / inferred outlives-bounds
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code: (try it in a playground)
I expect this code to either compile fine or provide a warning similar to #76200.
However, I see an error:
I don't understand why
RS: 'i
is needed for accessing a constant off ofSelf
. As one might expect, replacingSelf::CHUNK_SIZE
withVeryVeryLongTypeName::CHUNK_SIZE
works around the issue.Tested with stable
1.55.0
and1.57.0-nightly (2021-09-23 2b862bed9889808b6962)
.The text was updated successfully, but these errors were encountered: