]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0439.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0439.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 The length of the platform-intrinsic function `simd_shuffle` wasn't specified.
4
5 Erroneous code example:
6
7 ```ignore (no longer emitted)
8 #![feature(platform_intrinsics)]
9
10 extern "platform-intrinsic" {
11     fn simd_shuffle<A,B>(a: A, b: A, c: [u32; 8]) -> B;
12     // error: invalid `simd_shuffle`, needs length: `simd_shuffle`
13 }
14 ```
15
16 The `simd_shuffle` function needs the length of the array passed as
17 last parameter in its name. Example:
18
19 ```
20 #![feature(platform_intrinsics)]
21
22 extern "platform-intrinsic" {
23     fn simd_shuffle8<A,B>(a: A, b: A, c: [u32; 8]) -> B;
24 }
25 ```