blob: 09baa059e55679f5bbaa9d3a76c9db8b8d6f1996 [file] [log] [blame]
// check-fail
#![feature(intrinsics)]
fn a() {
let _: unsafe extern "rust-intrinsic" fn(isize) -> usize = std::mem::transmute;
//~^ ERROR cannot coerce
}
fn b() {
let _ = std::mem::transmute as unsafe extern "rust-intrinsic" fn(isize) -> usize;
//~^ ERROR casting
}
fn main() {}