]> git.proxmox.com Git - rustc.git/blob - src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / transmutability / visibility / should_reject_if_dst_has_unreachable_field.stderr
1 error[E0277]: `Src` cannot be safely transmuted into `Dst` in the defining scope of `test::Context`.
2 --> $DIR/should_reject_if_dst_has_unreachable_field.rs:38:41
3 |
4 LL | assert::is_transmutable::<src::Src, dst::Dst, Context>();
5 | ^^^^^^^^ `Src` cannot be safely transmuted into `Dst` in the defining scope of `test::Context`.
6 |
7 = help: the trait `BikeshedIntrinsicFrom<Src, test::Context, false, false, false, false>` is not implemented for `Dst`
8 note: required by a bound in `is_transmutable`
9 --> $DIR/should_reject_if_dst_has_unreachable_field.rs:15:14
10 |
11 LL | pub fn is_transmutable<Src, Dst, Context>()
12 | --------------- required by a bound in this
13 LL | where
14 LL | Dst: BikeshedIntrinsicFrom<Src, Context, false, false, false, false>
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.