]> git.proxmox.com Git - rustc.git/blob - tests/ui/transmutability/unions/should_reject_intersecting.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / transmutability / unions / should_reject_intersecting.stderr
1 error[E0277]: `A` cannot be safely transmuted into `B` in the defining scope of `assert::Context`.
2 --> $DIR/should_reject_intersecting.rs:36:34
3 |
4 LL | assert::is_transmutable::<A, B>();
5 | ^ `A` cannot be safely transmuted into `B` in the defining scope of `assert::Context`.
6 |
7 = help: the trait `BikeshedIntrinsicFrom<A, assert::Context, Assume { alignment: false, lifetimes: false, safety: true, validity: false }>` is not implemented for `B`
8 note: required by a bound in `is_transmutable`
9 --> $DIR/should_reject_intersecting.rs:14:14
10 |
11 LL | pub fn is_transmutable<Src, Dst>()
12 | --------------- required by a bound in this function
13 LL | where
14 LL | Dst: BikeshedIntrinsicFrom<Src, Context, { Assume::SAFETY }>
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
16
17 error[E0277]: `B` cannot be safely transmuted into `A` in the defining scope of `assert::Context`.
18 --> $DIR/should_reject_intersecting.rs:37:34
19 |
20 LL | assert::is_transmutable::<B, A>();
21 | ^ `B` cannot be safely transmuted into `A` in the defining scope of `assert::Context`.
22 |
23 = help: the trait `BikeshedIntrinsicFrom<B, assert::Context, Assume { alignment: false, lifetimes: false, safety: true, validity: false }>` is not implemented for `A`
24 note: required by a bound in `is_transmutable`
25 --> $DIR/should_reject_intersecting.rs:14:14
26 |
27 LL | pub fn is_transmutable<Src, Dst>()
28 | --------------- required by a bound in this function
29 LL | where
30 LL | Dst: BikeshedIntrinsicFrom<Src, Context, { Assume::SAFETY }>
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0277`.