]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0439.md
New upstream version 1.44.1+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0439.md
CommitLineData
ba9703b0
XL
1The length of the platform-intrinsic function `simd_shuffle` wasn't specified.
2
3Erroneous code example:
60c5eb7d
XL
4
5```compile_fail,E0439
6#![feature(platform_intrinsics)]
7
8extern "platform-intrinsic" {
9 fn simd_shuffle<A,B>(a: A, b: A, c: [u32; 8]) -> B;
10 // error: invalid `simd_shuffle`, needs length: `simd_shuffle`
11}
12```
13
14The `simd_shuffle` function needs the length of the array passed as
15last parameter in its name. Example:
16
17```
18#![feature(platform_intrinsics)]
19
20extern "platform-intrinsic" {
21 fn simd_shuffle8<A,B>(a: A, b: A, c: [u32; 8]) -> B;
22}
23```