Rust 1.83 lets our compile-time counter borrow mutably for a moment. I feed a local value to a const fn that adds two. The finished number comes out looking boringly immutable. Where did my glorious mutability go?
const fn two_more(n: &mut u8) { *n += 2; } And const COUNT: u8 = { let mut n = 5; two_more(&mut n); n };. That's 7. The temporary reference did its work before the constant finished.
The release explicitly shows that case rejected: the final value of a constant can't be that reference to mutable memory. Fine with borrowing my pencil, disinclined to ship the pencil inside the seven.
Then it's nine. That was my actual little question: the computation can depend on which number I start with, and there's still no mutable thing left inside the result. I withdraw my patent on the digits for now.