Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 303
Why is `static mut` discouraged (and references to it denied by a lint in edition 2024)?
A
It's only allowed in no_std
B
It can't hold integers
C
Any access is unsafe and easily creates data races or aliasing &mut, which is undefined behaviour
D
It's slower than atomics