]> git.lizzy.rs Git - rust.git/blob - tests/ui/transmutability/references.stderr
Render missing generics suggestion verbosely
[rust.git] / tests / 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:26:52
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, Assume { alignment: true, lifetimes: true, safety: true, validity: 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, {
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`
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0277`.