1- error[E0277]: `u8` cannot be safely transmuted into `NonZeroU8 `
2- --> $DIR/nonzero.rs:32 :49
1+ error[E0277]: `u8` cannot be safely transmuted into `NonZero<u8> `
2+ --> $DIR/nonzero.rs:34 :49
33 |
44LL | assert::is_transmutable_assume_safety::<u8, NonZeroU8>();
5- | ^^^^^^^^^ at least one value of `u8` isn't a bit-valid value of `NonZeroU8`
5+ | ^^^^^^^^^ analyzing the transmutability of `NonZero<u8>` is not yet supported
66 |
77note: required by a bound in `is_transmutable_assume_safety`
88 --> $DIR/nonzero.rs:16:14
@@ -13,11 +13,26 @@ LL | where
1313LL | Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_safety`
1515
16- error[E0277]: `NonZeroU8` cannot be safely transmuted into `NonZeroU8`
17- --> $DIR/nonzero.rs:35:57
16+ error[E0277]: `NonZero<u8>` cannot be safely transmuted into `u8`
17+ --> $DIR/nonzero.rs:35:56
18+ |
19+ LL | assert::is_transmutable_assume_safety::<NonZeroU8, u8>();
20+ | ^^ analyzing the transmutability of `NonZero<u8>` is not yet supported
21+ |
22+ note: required by a bound in `is_transmutable_assume_safety`
23+ --> $DIR/nonzero.rs:16:14
24+ |
25+ LL | pub fn is_transmutable_assume_safety<Src, Dst>()
26+ | ----------------------------- required by a bound in this function
27+ LL | where
28+ LL | Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
29+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_safety`
30+
31+ error[E0277]: `NonZero<u8>` cannot be safely transmuted into `NonZero<u8>`
32+ --> $DIR/nonzero.rs:37:57
1833 |
1934LL | assert::is_transmutable_assume_nothing::<NonZeroU8, NonZeroU8>();
20- | ^^^^^^^^^ `NonZeroU8` may carry safety invariants
35+ | ^^^^^^^^^ analyzing the transmutability of `NonZero<u8>` is not yet supported
2136 |
2237note: required by a bound in `is_transmutable_assume_nothing`
2338 --> $DIR/nonzero.rs:10:14
@@ -28,11 +43,26 @@ LL | where
2843LL | Dst: TransmuteFrom<Src, { Assume::NOTHING }>,
2944 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_nothing`
3045
31- error[E0277]: `u16` cannot be safely transmuted into `NonZeroU16`
32- --> $DIR/nonzero.rs:38:50
46+ error[E0277]: `NonZero<u8>` cannot be safely transmuted into `NonZero<u8>`
47+ --> $DIR/nonzero.rs:38:56
48+ |
49+ LL | assert::is_transmutable_assume_safety::<NonZeroU8, NonZeroU8>();
50+ | ^^^^^^^^^ analyzing the transmutability of `NonZero<u8>` is not yet supported
51+ |
52+ note: required by a bound in `is_transmutable_assume_safety`
53+ --> $DIR/nonzero.rs:16:14
54+ |
55+ LL | pub fn is_transmutable_assume_safety<Src, Dst>()
56+ | ----------------------------- required by a bound in this function
57+ LL | where
58+ LL | Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
59+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_safety`
60+
61+ error[E0277]: `u16` cannot be safely transmuted into `NonZero<u16>`
62+ --> $DIR/nonzero.rs:40:50
3363 |
3464LL | assert::is_transmutable_assume_safety::<u16, NonZeroU16>();
35- | ^^^^^^^^^^ at least one value of `u16` isn't a bit-valid value of `NonZeroU16`
65+ | ^^^^^^^^^^ analyzing the transmutability of `NonZero< u16>` is not yet supported
3666 |
3767note: required by a bound in `is_transmutable_assume_safety`
3868 --> $DIR/nonzero.rs:16:14
@@ -43,11 +73,26 @@ LL | where
4373LL | Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
4474 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_safety`
4575
46- error[E0277]: `NonZeroU16` cannot be safely transmuted into `NonZeroU16`
47- --> $DIR/nonzero.rs:41:58
76+ error[E0277]: `NonZero<u16>` cannot be safely transmuted into `u16`
77+ --> $DIR/nonzero.rs:41:57
78+ |
79+ LL | assert::is_transmutable_assume_safety::<NonZeroU16, u16>();
80+ | ^^^ analyzing the transmutability of `NonZero<u16>` is not yet supported
81+ |
82+ note: required by a bound in `is_transmutable_assume_safety`
83+ --> $DIR/nonzero.rs:16:14
84+ |
85+ LL | pub fn is_transmutable_assume_safety<Src, Dst>()
86+ | ----------------------------- required by a bound in this function
87+ LL | where
88+ LL | Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
89+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_safety`
90+
91+ error[E0277]: `NonZero<u16>` cannot be safely transmuted into `NonZero<u16>`
92+ --> $DIR/nonzero.rs:43:58
4893 |
4994LL | assert::is_transmutable_assume_nothing::<NonZeroU16, NonZeroU16>();
50- | ^^^^^^^^^^ `NonZeroU16` may carry safety invariants
95+ | ^^^^^^^^^^ analyzing the transmutability of `NonZero<u16>` is not yet supported
5196 |
5297note: required by a bound in `is_transmutable_assume_nothing`
5398 --> $DIR/nonzero.rs:10:14
@@ -58,6 +103,21 @@ LL | where
58103LL | Dst: TransmuteFrom<Src, { Assume::NOTHING }>,
59104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_nothing`
60105
61- error: aborting due to 4 previous errors
106+ error[E0277]: `NonZero<u16>` cannot be safely transmuted into `NonZero<u16>`
107+ --> $DIR/nonzero.rs:44:57
108+ |
109+ LL | assert::is_transmutable_assume_safety::<NonZeroU16, NonZeroU16>();
110+ | ^^^^^^^^^^ analyzing the transmutability of `NonZero<u16>` is not yet supported
111+ |
112+ note: required by a bound in `is_transmutable_assume_safety`
113+ --> $DIR/nonzero.rs:16:14
114+ |
115+ LL | pub fn is_transmutable_assume_safety<Src, Dst>()
116+ | ----------------------------- required by a bound in this function
117+ LL | where
118+ LL | Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
119+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable_assume_safety`
120+
121+ error: aborting due to 8 previous errors
62122
63123For more information about this error, try `rustc --explain E0277`.
0 commit comments