mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
246 B
Rust
14 lines
246 B
Rust
#![feature(repr_simd)]
|
|
#![allow(dead_code)]
|
|
|
|
#[repr(simd)]
|
|
#[derive(Copy, Clone)]
|
|
struct LocalSimd([u8; 2]);
|
|
|
|
extern "C" {
|
|
fn baz() -> LocalSimd; //~ ERROR use of SIMD type
|
|
fn qux(x: LocalSimd); //~ ERROR use of SIMD type
|
|
}
|
|
|
|
fn main() {}
|