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