Error code E0796
You have created a reference to a mutable static.
Erroneous code example:
ⓘ
A reference to a mutable static has lifetime 'static
. This is very dangerous
as it is easy to accidentally overlap the lifetime of that reference with
other, conflicting accesses to the same static.
References to mutable statics are a hard error in the 2024 edition.