Constant evaluation error: attempted to read undefined bytes #51300
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
I saw that #51086 was closed when #51225 was merged so I thought it would fix the same error on my own code as well however as of nightly:
rustc 1.28.0-nightly (aa094a43c 2018-06-01)
it still happens.Code:
Playground: http://play.rust-lang.org/?gist=cf51c77c20f06ca15f1dc2cc4fa779b0&version=nightly&mode=debug
From what I can tell its an alignment issue because changing id from a
u8
to au64
fixes the issue.The text was updated successfully, but these errors were encountered: