fork/rust

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

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

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