2024-02-26 16:49:25 +00:00
|
|
|
error[E0277]: `()` cannot be safely transmuted into `u8`
|
2024-03-11 01:18:41 +00:00
|
|
|
--> $DIR/unit.rs:31:35
|
2021-07-03 16:18:13 +00:00
|
|
|
|
|
2024-02-26 16:49:25 +00:00
|
|
|
LL | assert::is_transmutable::<(), u8>();
|
2024-03-15 17:55:49 +00:00
|
|
|
| ^^ the size of `()` is smaller than the size of `u8`
|
2021-07-03 16:18:13 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `is_transmutable`
|
2024-03-11 01:18:41 +00:00
|
|
|
--> $DIR/unit.rs:16:14
|
2021-07-03 16:18:13 +00:00
|
|
|
|
|
2024-02-26 16:49:25 +00:00
|
|
|
LL | pub fn is_transmutable<Src, Dst>()
|
2023-02-21 05:21:07 +00:00
|
|
|
| --------------- required by a bound in this function
|
2022-08-18 19:39:14 +00:00
|
|
|
LL | where
|
2024-08-27 14:05:54 +00:00
|
|
|
LL | Dst: TransmuteFrom<Src, {
|
2022-08-18 19:39:14 +00:00
|
|
|
| ______________^
|
|
|
|
LL | | Assume::ALIGNMENT
|
|
|
|
LL | | .and(Assume::LIFETIMES)
|
|
|
|
LL | | .and(Assume::SAFETY)
|
|
|
|
LL | | .and(Assume::VALIDITY)
|
|
|
|
LL | | }>
|
|
|
|
| |__________^ required by this bound in `is_transmutable`
|
2021-07-03 16:18:13 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-07-03 16:18:13 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|