]> git.proxmox.com Git - rustc.git/blob - tests/ui/transmutability/primitives/bool.next.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / transmutability / primitives / bool.next.stderr
1 error[E0277]: `u8` cannot be safely transmuted into `bool` in the defining scope of `assert::Context`
2 --> $DIR/bool.rs:21:35
3 |
4 LL | assert::is_transmutable::<u8, bool>();
5 | ^^^^ At least one value of `u8` isn't a bit-valid value of `bool`
6 |
7 note: required by a bound in `is_transmutable`
8 --> $DIR/bool.rs:11:14
9 |
10 LL | pub fn is_transmutable<Src, Dst>()
11 | --------------- required by a bound in this function
12 LL | where
13 LL | Dst: BikeshedIntrinsicFrom<Src, Context, { Assume::SAFETY }>
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
15
16 error: aborting due to 1 previous error
17
18 For more information about this error, try `rustc --explain E0277`.