Files
rust/tests/ui/feature-gates/feature-gate-simd-ffi.rs

14 lines
246 B
Rust
Raw Normal View History

#![feature(repr_simd)]
#![allow(dead_code)]
#[repr(simd)]
#[derive(Copy, Clone)]
2024-08-22 01:28:20 -07:00
struct LocalSimd([u8; 2]);
2020-09-01 17:12:52 -04:00
extern "C" {
fn baz() -> LocalSimd; //~ ERROR use of SIMD type
fn qux(x: LocalSimd); //~ ERROR use of SIMD type
}
fn main() {}