mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
16 lines
263 B
Rust
16 lines
263 B
Rust
//@ only-wasm32
|
|
//@ compile-flags: --crate-type=lib -Copt-level=2
|
|
//@ build-pass
|
|
#![feature(repr_simd)]
|
|
|
|
// Regression test for #80108
|
|
|
|
#[repr(simd)]
|
|
pub struct Vector([i32; 4]);
|
|
|
|
impl Vector {
|
|
pub const fn to_array(self) -> [i32; 4] {
|
|
self.0
|
|
}
|
|
}
|