fork/rust

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

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

master
1.6 KiB33 linesraw
1error[E0277]: `A` cannot be safely transmuted into `B` in the defining scope of `assert::Context`
2  --> $DIR/should_reject_disjoint.rs:33:40
3   |
4LL |     assert::is_maybe_transmutable::<A, B>();
5   |                                        ^ At least one value of `A` isn't a bit-valid value of `B`
6   |
7note: required by a bound in `is_maybe_transmutable`
8  --> $DIR/should_reject_disjoint.rs:13: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, { Assume::SAFETY.and(Assume::VALIDITY) }>
14   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
15
16error[E0277]: `B` cannot be safely transmuted into `A` in the defining scope of `assert::Context`
17  --> $DIR/should_reject_disjoint.rs:34:40
18   |
19LL |     assert::is_maybe_transmutable::<B, A>();
20   |                                        ^ At least one value of `B` isn't a bit-valid value of `A`
21   |
22note: required by a bound in `is_maybe_transmutable`
23  --> $DIR/should_reject_disjoint.rs:13:14
24   |
25LL |     pub fn is_maybe_transmutable<Src, Dst>()
26   |            --------------------- required by a bound in this function
27LL |     where
28LL |         Dst: BikeshedIntrinsicFrom<Src, Context, { Assume::SAFETY.and(Assume::VALIDITY) }>
29   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
30
31error: aborting due to 2 previous errors
32
33For more information about this error, try `rustc --explain E0277`.