Closed
Description
According to @oli-obk, there are currently some checks somewhere to rule out interior mutability in constants. However, this is accepted:
use std::sync::atomic::AtomicUsize;
const FOO : AtomicUsize = AtomicUsize::new(3);
It would be great if the reasons for this check could be spelled out, ideally somewhere in this repo :D
Metadata
Metadata
Assignees
Labels
No labels