diff options
author | Chris Krycho <chris@chriskrycho.com> | 2017-01-28 09:42:32 -0500 |
---|---|---|
committer | Chris Krycho <chris@chriskrycho.com> | 2017-01-28 09:42:32 -0500 |
commit | e8cb83a8237d79f4c8523f4b8df5e73688cfb8bb (patch) | |
tree | 2b3cf3e58041be9544f52d241ba3f96743aa22d0 /src/doc/reference.md | |
parent | ba60af3bbdde527c7944e67218bff4c6b283ad3b (diff) | |
download | rust-e8cb83a8237d79f4c8523f4b8df5e73688cfb8bb.tar.gz |
Add feature flag to reference docs for RFC 1623.
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r-- | src/doc/reference.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 713e6f1ab99..c6fc2ea4059 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1356,7 +1356,7 @@ unsafe fn bump_levels_unsafe2() -> u32 { Mutable statics have the same restrictions as normal statics, except that the type of the value is not required to ascribe to `Sync`. -#### `'static` lifetime elision +#### `'static` lifetime elision [unstable] Both constant and static declarations of reference types have *implicit* `'static` lifetimes unless an explicit lifetime is specified. As such, the @@ -1364,6 +1364,7 @@ constant declarations involving `'static` above may be written without the lifetimes. Returning to our previous example: ```rust +#[feature(static_in_const)] const BIT1: u32 = 1 << 0; const BIT2: u32 = 1 << 1; |