Incorrect Behavior in Updating Cell Value #114939
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
I tried this code:
The code should update the value of the Cell to 2 and print "Value of A: 2" or must show compilation error.
Instead, The code still prints "Value of A: 0" instead of "Value of A: 2".
The text was updated successfully, but these errors were encountered: