Wrong error when trying to write to static in a static initializer #51251
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
http://play.rust-lang.org/?gist=d719594f15f35f8be13987e2f722d1ab&version=nightly&mode=debug
results in
even though the feature gate is active (it should still error, but with a more targeted error message)
The text was updated successfully, but these errors were encountered: