rust/tests/ui/error-codes/E0511.rs

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

12 lines
180 B
Rust
Raw Normal View History

// build-fail
2016-08-25 22:14:20 +00:00
#![feature(platform_intrinsics)]
extern "platform-intrinsic" {
fn simd_add<T>(a: T, b: T) -> T;
}
fn main() {
unsafe { simd_add(0, 1); } //~ ERROR E0511
}