Skip to content

Commit a3162be

Browse files
committed
...and wasm tests too
1 parent 771e89d commit a3162be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ui/wasm/simd-to-array-80108.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub struct Vector([i32; 4]);
1010

1111
impl Vector {
1212
pub const fn to_array(self) -> [i32; 4] {
13-
self.0
13+
// This used to just be `.0`, but that was banned in
14+
// <https://github.com/rust-lang/compiler-team/issues/838>
15+
unsafe { std::mem::transmute(self) }
1416
}
1517
}

0 commit comments

Comments
 (0)