We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7153ee9 commit 61db5dcCopy full SHA for 61db5dc
const.md
@@ -62,6 +62,11 @@ note the FIXME added [by this PR](https://github.com/rust-lang/rust/pull/63955):
62
for untyped data in a constant, we currently just *make* it immutable, instead
63
of checking properly.
64
65
+Note that a constant *referring to* some already existing mutable memory is
66
+fine: inlining that reference everywhere has the same behavior as computing a
67
+new reference each time. In both cases, there exists exactly one instance of
68
+the mutable memory that everything references.
69
+
70
### 3. `Sync`
71
72
Finally, the same constant reference is actually shared across threads. This is
0 commit comments