fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
948 B23 linesraw
1error[E0277]: `B` cannot be safely transmuted into `A` in the defining scope of `assert::Context`
2  --> $DIR/transmute-padding-ice.rs:27:40
3   |
4LL |     assert::is_maybe_transmutable::<B, A>();
5   |                                        ^ The size of `B` is smaller than the size of `A`
6   |
7note: required by a bound in `is_maybe_transmutable`
8  --> $DIR/transmute-padding-ice.rs:11:14
9   |
10LL |       pub fn is_maybe_transmutable<Src, Dst>()
11   |              --------------------- required by a bound in this function
12LL |       where
13LL |           Dst: BikeshedIntrinsicFrom<
14   |  ______________^
15LL | |             Src,
16LL | |             Context,
17LL | |             { Assume { alignment: true, lifetimes: true, safety: true, validity: true } },
18LL | |         >,
19   | |_________^ required by this bound in `is_maybe_transmutable`
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0277`.