ICE when using offset_of! in generic_const_exprs #123959
Labels
A-traits
Area: Trait system
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
F-offset_of
`#![feature(offset_of)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code (playground)
Produces ICE:
Similar looking code also ICEs on stable with different error message and feature enabled:
Upd.: additionaly, it does not ICE with -Znext-solver enabled for the first provided case, but not the second.
The text was updated successfully, but these errors were encountered: