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 {
13561356Mutable statics have the same restrictions as normal statics, except that the
13571357type of the value is not required to ascribe to ` Sync ` .
13581358
1359- #### ` 'static ` lifetime elision
1359+ #### ` 'static ` lifetime elision [ unstable ]
13601360
13611361Both constant and static declarations of reference types have * implicit*
13621362` 'static ` lifetimes unless an explicit lifetime is specified. As such, the
13631363constant declarations involving ` 'static ` above may be written without the
13641364lifetimes. Returning to our previous example:
13651365
13661366``` rust
1367+ #[feature(static_in_const)]
13671368const BIT1 : u32 = 1 << 0 ;
13681369const BIT2 : u32 = 1 << 1 ;
13691370
You can’t perform that action at this time.
0 commit comments