Output type of indexing op. wrongly inferred in custom libcore #96661
Labels
A-inference
Area: Type inference
A-lang-item
Area: Language items
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
P-low
Low priority
requires-internal-features
This issue requires the use of internal features.
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=2021&gist=42c97cceb10fc5cb71915f95d28a2956
Click to show 100 lines of code
I expected to see this happen: code compiles without errors.
Instead, this happened: the output type of the Index operation is incorrectly inferred as i32.
Affects both v1.56 and nightly.
@rustbot label A-inference T-compiler C-enhancement requires-nightly A-lang-item
The text was updated successfully, but these errors were encountered: