]> git.proxmox.com Git - rustc.git/blame - tests/ui/transmutability/visibility/should_reject_if_dst_has_private_field.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / transmutability / visibility / should_reject_if_dst_has_private_field.stderr
CommitLineData
353b0b11 1error[E0277]: `Src` cannot be safely transmuted into `Dst` in the defining scope of `test::Context`
f2b60f7d 2 --> $DIR/should_reject_if_dst_has_private_field.rs:35:41
064997fb
FG
3 |
4LL | assert::is_transmutable::<src::Src, dst::Dst, Context>();
353b0b11 5 | ^^^^^^^^ `Dst` is or contains a type or field that is not visible in that scope
064997fb 6 |
064997fb
FG
7note: required by a bound in `is_transmutable`
8 --> $DIR/should_reject_if_dst_has_private_field.rs:13:14
9 |
10LL | pub fn is_transmutable<Src, Dst, Context>()
9ffffee4 11 | --------------- required by a bound in this function
064997fb 12LL | where
f2b60f7d
FG
13LL | Dst: BikeshedIntrinsicFrom<Src, Context> // safety is NOT assumed
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
064997fb
FG
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.