@@ -323,6 +323,7 @@ LL | let _val: (NonZero<u32>, i32) = mem::zeroed();
323
323
| ^^^^^^^^^^^^^ this code causes undefined behavior when executed
324
324
|
325
325
= note: `std::num::NonZero<u32>` must be non-null
326
+ = note: because `core::num::nonzero::private::NonZeroU32Inner` must be non-null
326
327
327
328
error: the type `(NonZero<u32>, i32)` does not permit being left uninitialized
328
329
--> $DIR/invalid_value.rs:95:41
@@ -331,6 +332,8 @@ LL | let _val: (NonZero<u32>, i32) = mem::uninitialized();
331
332
| ^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
332
333
|
333
334
= note: `std::num::NonZero<u32>` must be non-null
335
+ = note: because `core::num::nonzero::private::NonZeroU32Inner` must be non-null
336
+ = note: integers must be initialized
334
337
335
338
error: the type `*const dyn Send` does not permit zero-initialization
336
339
--> $DIR/invalid_value.rs:97:37
@@ -412,6 +415,7 @@ note: because `std::num::NonZero<u32>` must be non-null (in this field of the on
412
415
|
413
416
LL | Banana(NonZero<u32>),
414
417
| ^^^^^^^^^^^^
418
+ = note: because `core::num::nonzero::private::NonZeroU32Inner` must be non-null
415
419
416
420
error: the type `OneFruitNonZero` does not permit being left uninitialized
417
421
--> $DIR/invalid_value.rs:107:37
@@ -425,6 +429,8 @@ note: because `std::num::NonZero<u32>` must be non-null (in this field of the on
425
429
|
426
430
LL | Banana(NonZero<u32>),
427
431
| ^^^^^^^^^^^^
432
+ = note: because `core::num::nonzero::private::NonZeroU32Inner` must be non-null
433
+ = note: integers must be initialized
428
434
429
435
error: the type `bool` does not permit being left uninitialized
430
436
--> $DIR/invalid_value.rs:111:26
@@ -596,6 +602,7 @@ LL | let _val: NonZero<u32> = mem::transmute(0);
596
602
| ^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
597
603
|
598
604
= note: `std::num::NonZero<u32>` must be non-null
605
+ = note: because `core::num::nonzero::private::NonZeroU32Inner` must be non-null
599
606
600
607
error: the type `NonNull<i32>` does not permit zero-initialization
601
608
--> $DIR/invalid_value.rs:156:34
0 commit comments