#![crate_type = "lib"] #![feature(transmutability)] #![allow(dead_code)] #![allow(incomplete_features)] 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 contrast_with_u8() { assert::is_transmutable::(); //~ ERROR cannot be safely transmuted assert::is_maybe_transmutable::(); assert::is_transmutable::(); }