// check-fail //[next] compile-flags: -Znext-solver #![feature(transmutability)] mod assert { use std::mem::{Assume, BikeshedIntrinsicFrom}; pub struct Context; pub fn is_transmutable() where Dst: BikeshedIntrinsicFrom {} } fn main() { assert::is_transmutable::<&'static mut bool, &'static mut u8>() //~ ERROR cannot be safely transmuted }