Skip to content

Commit 47b0606

Browse files
committed
Update test for E0796 and static_mut_ref lint
1 parent 41b758f commit 47b0606

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
@@ -98,6 +98,9 @@ fn start<T: Termination + 'static>(
9898
}
9999

100100
static mut NUM: u8 = 6 * 7;
101+
102+
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint
103+
#[allow(static_mut_ref)]
101104
static NUM_REF: &'static u8 = unsafe { &NUM };
102105

103106
macro_rules! assert {

0 commit comments

Comments
 (0)