File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1356,14 +1356,15 @@ unsafe fn bump_levels_unsafe2() -> u32 {
1356
1356
Mutable statics have the same restrictions as normal statics, except that the
1357
1357
type of the value is not required to ascribe to ` Sync ` .
1358
1358
1359
- #### ` 'static ` lifetime elision
1359
+ #### ` 'static ` lifetime elision [ unstable ]
1360
1360
1361
1361
Both constant and static declarations of reference types have * implicit*
1362
1362
` 'static ` lifetimes unless an explicit lifetime is specified. As such, the
1363
1363
constant declarations involving ` 'static ` above may be written without the
1364
1364
lifetimes. Returning to our previous example:
1365
1365
1366
1366
``` rust
1367
+ #[feature(static_in_const)]
1367
1368
const BIT1 : u32 = 1 << 0 ;
1368
1369
const BIT2 : u32 = 1 << 1 ;
1369
1370
You can’t perform that action at this time.
0 commit comments