]> git.lizzy.rs Git - rust.git/blob - src/test/ui/transmutability/primitives/unit.stderr
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[rust.git] / src / test / ui / transmutability / primitives / unit.stderr
1 error[E0277]: `()` cannot be safely transmuted into `u8` in the defining scope of `should_have_correct_size::Context`.
2   --> $DIR/unit.rs:23:35
3    |
4 LL |     assert::is_transmutable::<(), u8, Context>();
5    |                                   ^^ `()` cannot be safely transmuted into `u8` in the defining scope of `should_have_correct_size::Context`.
6    |
7    = help: the trait `BikeshedIntrinsicFrom<(), should_have_correct_size::Context, true, true, true, true>` is not implemented for `u8`
8 note: required by a bound in `is_transmutable`
9   --> $DIR/unit.rs:12:14
10    |
11 LL |     pub fn is_transmutable<Src, Dst, Context>()
12    |            --------------- required by a bound in this
13 LL |     where
14 LL |         Dst: BikeshedIntrinsicFrom<Src, Context, true, true, true, true>
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`.