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
168 B
Rust
Raw Normal View History

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