You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: `&i32` cannot be safely transmuted into `&[u8; 4]`
|
6 | let bytes: &[u8; 4] = unsafe { TransmuteFrom::<&i32>::transmute(&1i32) };
| -------------------------------- ^^^^^ the nightly-only, unstable trait `TransmuteFrom<&i32, Assume { alignment: false, lifetimes: false, safety: false, validity: false }>` is not implemented for `&[u8; 4]`
| |
| required by a bound introduced by this call
For more information about this error, try `rustc --explain E0277`.
Activity
ShoyuVanilla commentedon Aug 31, 2026
Responsible lines:
rust/compiler/rustc_trait_selection/src/solve/delegate.rs
Lines 497 to 501 in 5321a4f
Rollup merge of rust-lang#163946 - lsunsi:next-transmute, r=lcnr,Shoy…
Rollup merge of rust-lang#163946 - lsunsi:next-transmute, r=lcnr,Shoy…
Rollup merge of rust-lang#163946 - lsunsi:next-transmute, r=lcnr,Shoy…
Unrolled build for #163946 in rollup 164216