]> git.proxmox.com Git - rustc.git/blob - tests/ui/transmutability/enums/should_pad_variants.stderr
bfbef8b25fcf486f11d85e737c93264cb796e634
[rustc.git] / tests / ui / transmutability / enums / should_pad_variants.stderr
1 error[E0277]: `Src` cannot be safely transmuted into `Dst` in the defining scope of `should_pad_variants::Context`
2 --> $DIR/should_pad_variants.rs:44:36
3 |
4 LL | assert::is_transmutable::<Src, Dst, Context>();
5 | ^^^ The size of `Src` is smaller than the size of `Dst`
6 |
7 note: required by a bound in `is_transmutable`
8 --> $DIR/should_pad_variants.rs:13:14
9 |
10 LL | pub fn is_transmutable<Src, Dst, Context>()
11 | --------------- required by a bound in this function
12 LL | where
13 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
14 | ______________^
15 LL | | Assume::ALIGNMENT
16 LL | | .and(Assume::LIFETIMES)
17 LL | | .and(Assume::SAFETY)
18 LL | | .and(Assume::VALIDITY)
19 LL | | }>
20 | |__________^ required by this bound in `is_transmutable`
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.