fork/rust

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

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

master
980 B25 linesraw
1error[E0277]: `Unit` cannot be safely transmuted into `u8` in the defining scope of `assert::Context`
2  --> $DIR/unit-to-u8.rs:23:52
3   |
4LL |     assert::is_maybe_transmutable::<&'static Unit, &'static u8>();
5   |                                                    ^^^^^^^^^^^ The size of `Unit` is smaller than the size of `u8`
6   |
7note: required by a bound in `is_maybe_transmutable`
8  --> $DIR/unit-to-u8.rs:10:14
9   |
10LL |       pub fn is_maybe_transmutable<Src, Dst>()
11   |              --------------------- required by a bound in this function
12LL |       where
13LL |           Dst: BikeshedIntrinsicFrom<Src, Context, {
14   |  ______________^
15LL | |             Assume {
16LL | |                 alignment: true,
17LL | |                 lifetimes: true,
18...  |
19LL | |             }
20LL | |         }>
21   | |__________^ required by this bound in `is_maybe_transmutable`
22
23error: aborting due to previous error
24
25For more information about this error, try `rustc --explain E0277`.