]>
Commit | Line | Data |
---|---|---|
064997fb | 1 | error[E0277]: `&'static Unit` cannot be safely transmuted into `&'static Unit` in the defining scope of `assert::Context`. |
f2b60f7d | 2 | --> $DIR/references.rs:26:52 |
064997fb FG |
3 | | |
4 | LL | assert::is_maybe_transmutable::<&'static Unit, &'static Unit>(); | |
f2b60f7d | 5 | | ^^^^^^^^^^^^^ `&'static Unit` cannot be safely transmuted into `&'static Unit` in the defining scope of `assert::Context`. |
064997fb | 6 | | |
f2b60f7d | 7 | = help: the trait `BikeshedIntrinsicFrom<&'static Unit, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `&'static Unit` |
064997fb FG |
8 | note: required by a bound in `is_maybe_transmutable` |
9 | --> $DIR/references.rs:13:14 | |
10 | | | |
f2b60f7d FG |
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, { | |
15 | | ______________^ | |
16 | LL | | Assume { | |
17 | LL | | alignment: true, | |
18 | LL | | lifetimes: true, | |
19 | ... | | |
20 | LL | | } | |
21 | LL | | }> | |
22 | | |__________^ required by this bound in `is_maybe_transmutable` | |
064997fb FG |
23 | |
24 | error: aborting due to previous error | |
25 | ||
26 | For more information about this error, try `rustc --explain E0277`. |