Skip to content

Commit 9797537

Browse files
chriskrychoManishearth
authored andcommitted
Add feature flag to reference docs for RFC 1623.
1 parent b836c03 commit 9797537

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,14 +1376,15 @@ unsafe fn bump_levels_unsafe2() -> u32 {
13761376
Mutable statics have the same restrictions as normal statics, except that the
13771377
type of the value is not required to ascribe to `Sync`.
13781378

1379-
#### `'static` lifetime elision
1379+
#### `'static` lifetime elision [unstable]
13801380

13811381
Both constant and static declarations of reference types have *implicit*
13821382
`'static` lifetimes unless an explicit lifetime is specified. As such, the
13831383
constant declarations involving `'static` above may be written without the
13841384
lifetimes. Returning to our previous example:
13851385

13861386
```rust
1387+
#[feature(static_in_const)]
13871388
const BIT1: u32 = 1 << 0;
13881389
const BIT2: u32 = 1 << 1;
13891390

0 commit comments

Comments
 (0)