//@ check-pass #![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 Unit>(); }