]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0439.md
Rollup merge of #64856 - jonhoo:format-temporaries, r=sfackler
[rust.git] / src / librustc_error_codes / error_codes / E0439.md
1 The length of the platform-intrinsic function `simd_shuffle`
2 wasn't specified. Erroneous code example:
3
4 ```compile_fail,E0439
5 #![feature(platform_intrinsics)]
6
7 extern "platform-intrinsic" {
8     fn simd_shuffle<A,B>(a: A, b: A, c: [u32; 8]) -> B;
9     // error: invalid `simd_shuffle`, needs length: `simd_shuffle`
10 }
11 ```
12
13 The `simd_shuffle` function needs the length of the array passed as
14 last parameter in its name. Example:
15
16 ```
17 #![feature(platform_intrinsics)]
18
19 extern "platform-intrinsic" {
20     fn simd_shuffle8<A,B>(a: A, b: A, c: [u32; 8]) -> B;
21 }
22 ```