Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
simd
/
monomorphize-zero-length.rs
blob: f956197a61cf096b08ef72fb12f1c2110172da36 [
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 the SIMD type `Simd<f64, 0>` has zero elements
}