-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal compiler error for type parameter out of range when substituting #114317
Comments
Thank you for bringing this🤗. Upon a thorough review, it appears that the query stacks for these two issues differ, suggesting that they are distinct Internal Compiler Errors (ICEs). However, we also notice that the compiler versions associated with these issues also differ. Thus, we cannot ascertain whether the variance in the query stack is because of the compiler versions. |
I encountered an ICE similar to this one, but with a pattern more similar to the older issue: pub const SIZE: usize = 8192;
pub struct Segment<
const N: usize = SIZE, // replacing with literal 8192 fixes it
T = u8
> {
_data: PhantomData<T>
} The source of the panic is Here's my backtrace, if it's helpful: Backtrace
|
Thank you very much for your reply. I think I have gained a better understanding of Rustc😃🚀 |
@rustbot claim |
Duplicate of #106994 Perhaps we can close this one in favour of that. |
@rustbot release-assignment |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: