diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-06-09 17:24:45 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-09 17:24:45 -0400 |
| commit | 6b6b380fd1fecd3877a67a540c20c80f46b0ecc6 (patch) | |
| tree | 87da9fe858c3a4307ac7ec058b588ec5c89816f8 /src/doc/trpl | |
| parent | 9bcae312a39c4ecc93449e40e86d05b776eadd16 (diff) | |
| parent | 9db94498363b4cdf9252084a576bfdb5f13b082f (diff) | |
| download | rust-6b6b380fd1fecd3877a67a540c20c80f46b0ecc6.tar.gz rust-6b6b380fd1fecd3877a67a540c20c80f46b0ecc6.zip | |
Rollup merge of #26144 - steveklabnik:static_doc_fix, r=alexcrichton
Fixes #25851 I am 99% sure this is true for all `static`s and not just `static mut`, yes?
Diffstat (limited to 'src/doc/trpl')
| -rw-r--r-- | src/doc/trpl/const-and-static.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/doc/trpl/const-and-static.md b/src/doc/trpl/const-and-static.md index 83461feba40..7d555b52a98 100644 --- a/src/doc/trpl/const-and-static.md +++ b/src/doc/trpl/const-and-static.md @@ -64,7 +64,10 @@ unsafe { [unsafe]: unsafe.html -Furthermore, any type stored in a `static` must be `Sync`. +Furthermore, any type stored in a `static` must be `Sync`, and may not have +a [`Drop`][drop] implementation. + +[drop]: drop.html # Initializing |
