Compiler panic when using repr(packed) associated constant in a match arm #50356
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I recently updated my nightly toolchain for rust, and compiled a project I was working on. Previously I was on the
nightly-2018-04-19-x86_64-pc-windows-msvc
version, and updated to thenightly-2018-04-29-x86_64-pc-windows-msvc
version. I encountered a compiler error when dealing withmatch
statements and Associated Constants, centered around alignment issues of the associated constant.After some testing, I managed to create a simple example with the code below:
cargo build
:Meta
rustc --version --verbose
:I've also tested and encountered this error on the following versions:
The text was updated successfully, but these errors were encountered: