]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/transmute/main.rs
Rollup merge of #103521 - chenyukang:yukang/fix-103451-avoid-hang, r=jackh726,wesleywiser
[rust.git] / src / test / ui / transmute / main.rs
index cb46fc5ec467d78fd518a0c9a04a2700bdf8c200..da4a0a660c8cbc20c2fe8d0597078b57e24b6ca3 100644 (file)
@@ -10,7 +10,7 @@ pub trait TypeConstructor<'a> {
 unsafe fn transmute_lifetime<'a, 'b, C>(x: <C as TypeConstructor<'a>>::T)
                                         -> <C as TypeConstructor<'b>>::T
 where for<'z> C: TypeConstructor<'z> {
-    transmute(x) //~ ERROR cannot transmute between types of different sizes
+    transmute(x)
 }
 
 unsafe fn sizes() {