Update test for E0796 and static_mut_ref lint

This commit is contained in:
Obei Sideg 2023-12-22 15:12:01 +03:00
parent 41b758f437
commit 47b06069b3

View File

@ -98,6 +98,9 @@ fn start<T: Termination + 'static>(
} }
static mut NUM: u8 = 6 * 7; static mut NUM: u8 = 6 * 7;
// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint
#[allow(static_mut_ref)]
static NUM_REF: &'static u8 = unsafe { &NUM }; static NUM_REF: &'static u8 = unsafe { &NUM };
macro_rules! assert { macro_rules! assert {