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