Skip to content

Commit ece1e18

Browse files
authored
Rollup merge of rust-lang#89579 - workingjubilee:regression-test-80108, r=Mark-Simulacrum
Add regression test for issue 80108 Closes rust-lang#80108
2 parents 5190e4a + 192e7a9 commit ece1e18

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// only-wasm32
2+
// build-pass
3+
#![feature(repr_simd)]
4+
5+
// Regression test for #80108
6+
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

Comments
 (0)