]> git.proxmox.com Git - rustc.git/blob - src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / transmutability / visibility / should_reject_if_dst_has_private_variant.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_private_variant.rs:36: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, Assume { alignment: false, lifetimes: false, safety: false, validity: false }>` is not implemented for `Dst`
8 note: required by a bound in `is_transmutable`
9 --> $DIR/should_reject_if_dst_has_private_variant.rs:13: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> // safety is NOT assumed
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`.