//@ check-fail #![feature(transmutability)] mod assert { use std::mem::{Assume, BikeshedIntrinsicFrom}; pub fn is_maybe_transmutable() where Dst: BikeshedIntrinsicFrom {} } fn main() { #[repr(C)] struct Unit; assert::is_maybe_transmutable::<&'static Unit, &'static u8>(); //~ ERROR cannot be safely transmuted }