summaryrefslogtreecommitdiffstats
path: root/src/test/ui/diverging-fn-tail-35849.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/diverging-fn-tail-35849.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/diverging-fn-tail-35849.rs b/src/test/ui/diverging-fn-tail-35849.rs
new file mode 100644
index 000000000..f21ce2973
--- /dev/null
+++ b/src/test/ui/diverging-fn-tail-35849.rs
@@ -0,0 +1,8 @@
+fn assert_sizeof() -> ! {
+ unsafe {
+ ::std::mem::transmute::<f64, [u8; 8]>(panic!())
+ //~^ ERROR mismatched types
+ }
+}
+
+fn main() { }