//@ check-pass #![crate_type = "lib"] #![feature(transmutability)] use std::mem::BikeshedIntrinsicFrom; pub fn is_maybe_transmutable() where Dst: BikeshedIntrinsicFrom, { } // The `T` here should not have any effect on checking // if transmutability is allowed or not. fn function_with_generic() { is_maybe_transmutable::<(), ()>(); }