Update test for E0796
and static_mut_ref
lint
This commit is contained in:
parent
18edf9a64e
commit
a8aa6878f6
54 changed files with 807 additions and 239 deletions
|
@ -111,6 +111,9 @@ fn start<T: Termination + 'static>(
|
|||
}
|
||||
|
||||
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 };
|
||||
|
||||
unsafe fn zeroed<T>() -> T {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue