mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
12 lines
181 B
Rust
12 lines
181 B
Rust
//@ build-fail
|
|
|
|
#![feature(platform_intrinsics)]
|
|
|
|
extern "platform-intrinsic" {
|
|
fn simd_add<T>(a: T, b: T) -> T;
|
|
}
|
|
|
|
fn main() {
|
|
unsafe { simd_add(0, 1); } //~ ERROR E0511
|
|
}
|