We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175b8db commit 7fb6e1aCopy full SHA for 7fb6e1a
src/test/ui/wasm/simd-to-array-80108.rs
@@ -0,0 +1,15 @@
1
+// only-wasm32
2
+// compile-flags: --crate-type=lib -Copt-level=2
3
+// build-pass
4
+#![feature(repr_simd)]
5
+
6
+// Regression test for #80108
7
8
+#[repr(simd)]
9
+pub struct Vector([i32; 4]);
10
11
+impl Vector {
12
+ pub const fn to_array(self) -> [i32; 4] {
13
+ self.0
14
+ }
15
+}
0 commit comments