// revisions: current next //[next] compile-flags: -Znext-solver #![feature(transmutability)] mod assert { use std::mem::{Assume, BikeshedIntrinsicFrom}; pub struct Context; pub fn is_transmutable() where Dst: BikeshedIntrinsicFrom {} pub fn is_maybe_transmutable() where Dst: BikeshedIntrinsicFrom {} } fn main() { assert::is_transmutable::(); //~ ERROR cannot be safely transmuted assert::is_maybe_transmutable::(); assert::is_transmutable::(); }