]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-simd-ffi.rs
Rollup merge of #106641 - chenyukang:yukang/fix-105761-segguest-this, r=estebank
[rust.git] / tests / ui / feature-gates / feature-gate-simd-ffi.rs
1 #![feature(repr_simd)]
2 #![allow(dead_code)]
3
4 #[repr(simd)]
5 #[derive(Copy, Clone)]
6 struct LocalSimd(u8, u8);
7
8 extern "C" {
9     fn baz() -> LocalSimd; //~ ERROR use of SIMD type
10     fn qux(x: LocalSimd); //~ ERROR use of SIMD type
11 }
12
13 fn main() {}