We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba60af3 commit e8cb83aCopy full SHA for e8cb83a
src/doc/reference.md
@@ -1356,14 +1356,15 @@ unsafe fn bump_levels_unsafe2() -> u32 {
1356
Mutable statics have the same restrictions as normal statics, except that the
1357
type of the value is not required to ascribe to `Sync`.
1358
1359
-#### `'static` lifetime elision
+#### `'static` lifetime elision [unstable]
1360
1361
Both constant and static declarations of reference types have *implicit*
1362
`'static` lifetimes unless an explicit lifetime is specified. As such, the
1363
constant declarations involving `'static` above may be written without the
1364
lifetimes. Returning to our previous example:
1365
1366
```rust
1367
+#[feature(static_in_const)]
1368
const BIT1: u32 = 1 << 0;
1369
const BIT2: u32 = 1 << 1;
1370
0 commit comments