rust/tests/ui/error-codes/E0511.rs
2024-02-25 08:15:44 +01:00

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
}