]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/items/static-items.md
New upstream version 1.23.0+dfsg1
[rustc.git] / src / doc / reference / src / items / static-items.md
index bac030477f5cf0bc601e65f241978d90dcfae728..d3429613141e78eb8da51a8049259cd5aa8b5968 100644 (file)
@@ -14,7 +14,10 @@ statics:
 * Statics may not contain any destructors.
 * The types of static values must ascribe to `Sync` to allow thread-safe
   access.
-* Statics may not refer to other statics by value, only by reference.
+* Statics allow using paths to statics in the
+  [constant-expression](expressions.html#constant-expressions) used to
+  initialize them, but statics may not refer to other statics by value, only by
+  reference.
 * Constants cannot refer to statics.
 
 Constants should in general be preferred over statics, unless large amounts of