Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-simd-ffi.rs
blob: 2ee935e07ffa4b10b6ea290ec4bbca4961e4ca61 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
repr_simd
)]
#![
allow
(
dead_code
)]
#[
repr
(
simd
)]
#[
derive
(
Copy
,
Clone
)]
struct
LocalSimd
([
u8
;
2
]);
extern
"C"
{
fn
baz
()
->
LocalSimd
;
//~ ERROR use of SIMD type
fn
qux
(
x
:
LocalSimd
);
//~ ERROR use of SIMD type
}
fn
main
()
{}