diff options
| author | Obei Sideg <obei.sideg@gmail.com> | 2023-12-22 15:12:01 +0300 |
|---|---|---|
| committer | Obei Sideg <obei.sideg@gmail.com> | 2024-01-07 17:29:25 +0300 |
| commit | 47b06069b3e63df4d850479084d5543b24a92302 (patch) | |
| tree | 775a85135f95678c70552e3fda14902d33bd761d /example | |
| parent | 41b758f437a72601ca82055197cacbafcd2cbd02 (diff) | |
| download | rust-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.rs | 3 |
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 { |
