about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/error_codes/E0074.md
blob: 71d89f5eb60a4ba334eeebab3145075fcc3cf7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#### Note: this error code is no longer emitted by the compiler.

When using the `#[simd]` attribute on a tuple struct, the components of the
tuple struct must all be of a concrete, nongeneric type so the compiler can
reason about how to use SIMD with them. This error will occur if the types
are generic.

This will cause an error:

```
#![feature(repr_simd)]

#[repr(simd)]
struct Bad<T>([T; 4]);
```

This will not:

```
#![feature(repr_simd)]

#[repr(simd)]
struct Good([u32; 4]);
```