]> git.proxmox.com Git - rustc.git/blob - src/test/ui/transmutability/enums/should_respect_endianness.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / transmutability / enums / should_respect_endianness.stderr
1 error[E0277]: `Src` cannot be safely transmuted into `Unexpected` in the defining scope of `assert::Context`.
2 --> $DIR/should_respect_endianness.rs:37:36
3 |
4 LL | assert::is_transmutable::<Src, Unexpected>();
5 | ^^^^^^^^^^ `Src` cannot be safely transmuted into `Unexpected` in the defining scope of `assert::Context`.
6 |
7 = help: the trait `BikeshedIntrinsicFrom<Src, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `Unexpected`
8 note: required by a bound in `is_transmutable`
9 --> $DIR/should_respect_endianness.rs:15:14
10 |
11 LL | pub fn is_transmutable<Src, Dst>()
12 | --------------- required by a bound in this
13 LL | where
14 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
15 | ______________^
16 LL | | Assume::ALIGNMENT
17 LL | | .and(Assume::LIFETIMES)
18 LL | | .and(Assume::SAFETY)
19 LL | | .and(Assume::VALIDITY)
20 LL | | }>
21 | |__________^ required by this bound in `is_transmutable`
22
23 error: aborting due to previous error
24
25 For more information about this error, try `rustc --explain E0277`.