]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-simd-ffi.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / 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() {}