rust/tests/ui/feature-gates/feature-gate-simd-ffi.rs
2023-01-11 09:32:08 +00:00

14 lines
245 B
Rust

#![feature(repr_simd)]
#![allow(dead_code)]
#[repr(simd)]
#[derive(Copy, Clone)]
struct LocalSimd(u8, u8);
extern "C" {
fn baz() -> LocalSimd; //~ ERROR use of SIMD type
fn qux(x: LocalSimd); //~ ERROR use of SIMD type
}
fn main() {}