diff options
Diffstat (limited to 'src/test/ui/reify-intrinsic.rs')
-rw-r--r-- | src/test/ui/reify-intrinsic.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/ui/reify-intrinsic.rs b/src/test/ui/reify-intrinsic.rs deleted file mode 100644 index 9eb2f7240..000000000 --- a/src/test/ui/reify-intrinsic.rs +++ /dev/null @@ -1,23 +0,0 @@ -// check-fail - -#![feature(core_intrinsics, 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 c() { - let _ = [ - std::intrinsics::likely, - std::intrinsics::unlikely, - //~^ ERROR cannot coerce - ]; -} - -fn main() {} |