summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0511.rs
blob: a52f81a6c5df4cd5cf3355f020eafa60f6d8b3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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
}