diff options
Diffstat (limited to 'tests/ui/intrinsics')
-rw-r--r-- | tests/ui/intrinsics/panic-uninitialized-zeroed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/intrinsics/panic-uninitialized-zeroed.rs b/tests/ui/intrinsics/panic-uninitialized-zeroed.rs index 1a0104b85..6db2ebb97 100644 --- a/tests/ui/intrinsics/panic-uninitialized-zeroed.rs +++ b/tests/ui/intrinsics/panic-uninitialized-zeroed.rs @@ -391,7 +391,7 @@ fn main() { let _val = mem::zeroed::<ZeroIsValid>(); let _val = mem::uninitialized::<MaybeUninit<bool>>(); let _val = mem::uninitialized::<[!; 0]>(); - let _val = mem::uninitialized::<()>(); + let _val: () = mem::uninitialized::<()>(); let _val = mem::uninitialized::<ZeroSized>(); } } |