//@ check-pass #![feature(transmutability)] mod assert { use std::mem::{Assume, TransmuteFrom}; pub fn is_maybe_transmutable() where Dst: TransmuteFrom {} } fn main() { #[repr(C)] struct Unit; assert::is_maybe_transmutable::<&'static Unit, &'static Unit>(); }