]> git.proxmox.com Git - rustc.git/blob - tests/ui/transmutability/primitives/bool.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / transmutability / primitives / bool.stderr
1 error[E0277]: `u8` cannot be safely transmuted into `bool` in the defining scope of `assert::Context`.
2 --> $DIR/bool.rs:22:35
3 |
4 LL | assert::is_transmutable::<u8, bool>();
5 | ^^^^ `u8` cannot be safely transmuted into `bool` in the defining scope of `assert::Context`.
6 |
7 = help: the trait `BikeshedIntrinsicFrom<u8, assert::Context, Assume { alignment: false, lifetimes: false, safety: true, validity: false }>` is not implemented for `bool`
8 note: required by a bound in `is_transmutable`
9 --> $DIR/bool.rs:12: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: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.