]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0074.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0074.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 When using the `#[simd]` attribute on a tuple struct, the components of the
4 tuple struct must all be of a concrete, nongeneric type so the compiler can
5 reason about how to use SIMD with them. This error will occur if the types
6 are generic.
7
8 This will cause an error:
9
10 ```
11 #![feature(repr_simd)]
12
13 #[repr(simd)]
14 struct Bad<T>(T, T, T, T);
15 ```
16
17 This will not:
18
19 ```
20 #![feature(repr_simd)]
21
22 #[repr(simd)]
23 struct Good(u32, u32, u32, u32);
24 ```