From 952b914a56bc896b275f2a92943f239f3baed1ea Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Fri, 23 Oct 2015 18:47:49 -0200 Subject: [PATCH] Adds 'ICE: Intrinsics cannot be used as bare functions' Reference rust-lang/rust#15694 --- src/15694.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/15694.rs diff --git a/src/15694.rs b/src/15694.rs new file mode 100644 index 00000000..c60ca49b --- /dev/null +++ b/src/15694.rs @@ -0,0 +1,4 @@ +use std::mem; +fn main() { + let _: unsafe extern "rust-intrinsic" fn(isize) -> usize = mem::transmute; +}