Skip to content

Commit 6b6b380

Browse files
committed
Rollup merge of rust-lang#26144 - steveklabnik:static_doc_fix, r=alexcrichton
Fixes rust-lang#25851 I am 99% sure this is true for all `static`s and not just `static mut`, yes?
2 parents 9bcae31 + 9db9449 commit 6b6b380

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/trpl/const-and-static.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ unsafe {
6464

6565
[unsafe]: unsafe.html
6666

67-
Furthermore, any type stored in a `static` must be `Sync`.
67+
Furthermore, any type stored in a `static` must be `Sync`, and may not have
68+
a [`Drop`][drop] implementation.
69+
70+
[drop]: drop.html
6871

6972
# Initializing
7073

0 commit comments

Comments
 (0)