|
| 1 | +error[E0277]: `()` cannot be safely transmuted into `ExplicitlyPadded` in the defining scope of `assert::Context` |
| 2 | + --> $DIR/issue-115402-overflow-size.rs:22:41 |
| 3 | + | |
| 4 | +LL | assert::is_maybe_transmutable::<(), ExplicitlyPadded>(); |
| 5 | + | ^^^^^^^^^^^^^^^^ values of the type `ExplicitlyPadded` are too big for the current architecture |
| 6 | + | |
| 7 | +note: required by a bound in `is_maybe_transmutable` |
| 8 | + --> $DIR/issue-115402-overflow-size.rs:9:14 |
| 9 | + | |
| 10 | +LL | pub fn is_maybe_transmutable<Src, Dst>() |
| 11 | + | --------------------- required by a bound in this function |
| 12 | +LL | where |
| 13 | +LL | Dst: BikeshedIntrinsicFrom<Src, Context>, |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable` |
| 15 | + |
| 16 | +error[E0277]: `ExplicitlyPadded` cannot be safely transmuted into `()` in the defining scope of `assert::Context` |
| 17 | + --> $DIR/issue-115402-overflow-size.rs:25:55 |
| 18 | + | |
| 19 | +LL | assert::is_maybe_transmutable::<ExplicitlyPadded, ()>(); |
| 20 | + | ^^ values of the type `ExplicitlyPadded` are too big for the current architecture |
| 21 | + | |
| 22 | +note: required by a bound in `is_maybe_transmutable` |
| 23 | + --> $DIR/issue-115402-overflow-size.rs:9:14 |
| 24 | + | |
| 25 | +LL | pub fn is_maybe_transmutable<Src, Dst>() |
| 26 | + | --------------------- required by a bound in this function |
| 27 | +LL | where |
| 28 | +LL | Dst: BikeshedIntrinsicFrom<Src, Context>, |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable` |
| 30 | + |
| 31 | +error: aborting due to 2 previous errors |
| 32 | + |
| 33 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments