Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
wasm
/
simd-to-array-80108.rs
blob: c7f8585eaa4e0ed77d42402503458430d18fa505 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
}
}