Const eval incorrectly computes that mutable param is zero #64970
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
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 code results in a const eval divide by zero error, when it cannot actually error at runtime:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ee4964acbb7fe290cfdaa573fddf5195
The text was updated successfully, but these errors were encountered: