Skip to content

Commit 837c030

Browse files
committed
Update test for E0796 and static_mut_ref lint
1 parent 0cfbc47 commit 837c030

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/mini_core_hello_world.rs

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ fn start<T: Termination + 'static>(
111111
}
112112

113113
static mut NUM: u8 = 6 * 7;
114+
115+
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint
116+
#[allow(static_mut_ref)]
114117
static NUM_REF: &'static u8 = unsafe { &NUM };
115118

116119
unsafe fn zeroed<T>() -> T {

0 commit comments

Comments
 (0)