]> git.proxmox.com Git - rustc.git/blob - src/test/ui/transmutability/references.stderr
Update upstream source from tag 'upstream/1.64.0+dfsg1'
[rustc.git] / src / test / ui / transmutability / references.stderr
1 error[E0277]: `&'static Unit` cannot be safely transmuted into `&'static Unit` in the defining scope of `assert::Context`.
2 --> $DIR/references.rs:19:37
3 |
4 LL | assert::is_maybe_transmutable::<&'static Unit, &'static Unit>();
5 | ^^^^^^^^^^^^^ `&'static Unit` cannot be safely transmuted into `&'static Unit` in the defining scope of `assert::Context`.
6 |
7 = help: the trait `BikeshedIntrinsicFrom<&'static Unit, assert::Context, true, true, true, true>` is not implemented for `&'static Unit`
8 note: required by a bound in `is_maybe_transmutable`
9 --> $DIR/references.rs:13:14
10 |
11 LL | pub fn is_maybe_transmutable<Src, Dst>()
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_maybe_transmutable`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.