static
containing UnsafeCell
can circumvent const-checking with certain feature gates
#77353
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
B-unstable
Blocker: Implemented in the nightly compiler and unstable.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following example passes the static const checks, reaching const-eval and erroring post-monomorphization. I need to figure out what's going wrong here before
const_mut_refs
is stabilized.cc #57349
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: