@@ -13,7 +13,7 @@ LL | MaybeUninit::<!>::uninit().assume_init();
1313error: any use of this value will cause an error
1414 --> $DIR/assert-type-intrinsics.rs:17:9
1515 |
16- LL | const _BAD2: () = unsafe {
16+ LL | const _BAD2: () = {
1717 | ---------------
1818LL | intrinsics::assert_uninit_valid::<bool>();
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aborted execution: attempted to leave type `bool` uninitialized, which is invalid
@@ -24,7 +24,7 @@ LL | intrinsics::assert_uninit_valid::<bool>();
2424error: any use of this value will cause an error
2525 --> $DIR/assert-type-intrinsics.rs:20:9
2626 |
27- LL | const _BAD3: () = unsafe {
27+ LL | const _BAD3: () = {
2828 | ---------------
2929LL | intrinsics::assert_zero_valid::<&'static i32>();
3030 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aborted execution: attempted to zero-initialize type `&i32`, which is invalid
@@ -51,7 +51,7 @@ Future breakage diagnostic:
5151error: any use of this value will cause an error
5252 --> $DIR/assert-type-intrinsics.rs:17:9
5353 |
54- LL | const _BAD2: () = unsafe {
54+ LL | const _BAD2: () = {
5555 | ---------------
5656LL | intrinsics::assert_uninit_valid::<bool>();
5757 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aborted execution: attempted to leave type `bool` uninitialized, which is invalid
@@ -64,7 +64,7 @@ Future breakage diagnostic:
6464error: any use of this value will cause an error
6565 --> $DIR/assert-type-intrinsics.rs:20:9
6666 |
67- LL | const _BAD3: () = unsafe {
67+ LL | const _BAD3: () = {
6868 | ---------------
6969LL | intrinsics::assert_zero_valid::<&'static i32>();
7070 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aborted execution: attempted to zero-initialize type `&i32`, which is invalid
0 commit comments