ICE: "type parameter out of range when substituting" when accessing non-existent field of struct #81672
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
This doesn't work for all structs, for example using
Vec<u8>
produces a normal compiler error.Meta
rustc --version --verbose
:Couldn't reproduce this on 1.49.0 or 1.50.0-beta.8.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: