Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
simd
/
monomorphize-zero-length.rs
blob: d38870c572d9723b3e37422859b1d5fcf10e5476 [
file
] [
log
] [
blame
]
//@ build-fail
#![
feature
(
repr_simd
)]
#[
repr
(
simd
)]
struct
Simd
<
T
,
const
N
:
usize
>([
T
;
N
]);
fn
main
()
{
let
_empty
=
Simd
([
1.0
;
0
]);
}
//~? ERROR monomorphising SIMD type `Simd<f64, 0>` of zero length