]> git.proxmox.com Git - rustc.git/blame - src/test/ui/transmutability/references.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / transmutability / references.stderr
CommitLineData
064997fb 1error[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 |
4LL | 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
8note: required by a bound in `is_maybe_transmutable`
9 --> $DIR/references.rs:13:14
10 |
f2b60f7d
FG
11LL | pub fn is_maybe_transmutable<Src, Dst>()
12 | --------------------- required by a bound in this
13LL | where
14LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
15 | ______________^
16LL | | Assume {
17LL | | alignment: true,
18LL | | lifetimes: true,
19... |
20LL | | }
21LL | | }>
22 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
23
24error: aborting due to previous error
25
26For more information about this error, try `rustc --explain E0277`.