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