]> git.lizzy.rs Git - rust.git/blob - tests/ui/wasm/simd-to-array-80108.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / wasm / simd-to-array-80108.rs
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 }