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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
245 B
Rust
Raw Normal View History

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