Is it undefined behavior to mutate an immutable local variable?

前端 未结 0 1983
说谎
说谎 2021-02-02 01:15

The Rust Reference seems to say that mutating an immutable local data (that\'s not inside an UnsafeCell) is undefined behavior:
Behavior considere

相关标签:
回答
  • 消灭零回复
提交回复
热议问题