Change placement of [Unstable] marker in RFC 1623 docs.
This commit is contained in:
parent
e8cb83a823
commit
3f0ca55780
1 changed files with 5 additions and 5 deletions
|
|
@ -1356,12 +1356,12 @@ 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 [unstable]
|
||||
#### `'static` lifetime elision
|
||||
|
||||
Both constant and static declarations of reference types have *implicit*
|
||||
`'static` lifetimes unless an explicit lifetime is specified. As such, the
|
||||
constant declarations involving `'static` above may be written without the
|
||||
lifetimes. Returning to our previous example:
|
||||
[Unstable] Both constant and static declarations of reference types have
|
||||
*implicit* `'static` lifetimes unless an explicit lifetime is specified. As
|
||||
such, the constant declarations involving `'static` above may be written
|
||||
without the lifetimes. Returning to our previous example:
|
||||
|
||||
```rust
|
||||
#[feature(static_in_const)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue