fork/rust

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

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

master
869 B18 linesraw
1error[E0277]: `Superset` cannot be safely transmuted into `Subset` in the defining scope of `assert::Context`
2  --> $DIR/should_reject_contraction.rs:35:41
3   |
4LL |     assert::is_transmutable::<Superset, Subset>();
5   |                                         ^^^^^^ At least one value of `Superset` isn't a bit-valid value of `Subset`
6   |
7note: required by a bound in `is_transmutable`
8  --> $DIR/should_reject_contraction.rs:13:14
9   |
10LL |     pub fn is_transmutable<Src, Dst>()
11   |            --------------- required by a bound in this function
12LL |     where
13LL |         Dst: BikeshedIntrinsicFrom<Src, Context, { Assume::SAFETY }>
14   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.