about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorObei Sideg <obei.sideg@gmail.com>2023-12-22 15:12:01 +0300
committerObei Sideg <obei.sideg@gmail.com>2024-01-07 17:29:25 +0300
commit47b06069b3e63df4d850479084d5543b24a92302 (patch)
tree775a85135f95678c70552e3fda14902d33bd761d /example
parent41b758f437a72601ca82055197cacbafcd2cbd02 (diff)
downloadrust-47b06069b3e63df4d850479084d5543b24a92302.tar.gz
rust-47b06069b3e63df4d850479084d5543b24a92302.zip
Update test for `E0796` and `static_mut_ref` lint
Diffstat (limited to 'example')
-rw-r--r--example/mini_core_hello_world.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs
index 40a1ad22c0e..9827e299f2a 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -98,6 +98,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 };
 
 macro_rules! assert {