1 parent b836c03 commit 9797537Copy full SHA for 9797537
1 file changed
reference.md
@@ -1376,14 +1376,15 @@ unsafe fn bump_levels_unsafe2() -> u32 {
1376
Mutable statics have the same restrictions as normal statics, except that the
1377
type of the value is not required to ascribe to `Sync`.
1378
1379
-#### `'static` lifetime elision
+#### `'static` lifetime elision [unstable]
1380
1381
Both constant and static declarations of reference types have *implicit*
1382
`'static` lifetimes unless an explicit lifetime is specified. As such, the
1383
constant declarations involving `'static` above may be written without the
1384
lifetimes. Returning to our previous example:
1385
1386
```rust
1387
+#[feature(static_in_const)]
1388
const BIT1: u32 = 1 << 0;
1389
const BIT2: u32 = 1 << 1;
1390
0 commit comments