diff options
Diffstat (limited to 'compiler/rustc_error_codes/src/error_codes/E0074.md')
-rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0074.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0074.md b/compiler/rustc_error_codes/src/error_codes/E0074.md new file mode 100644 index 000000000..785d6de22 --- /dev/null +++ b/compiler/rustc_error_codes/src/error_codes/E0074.md @@ -0,0 +1,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, T, T, T); +``` + +This will not: + +``` +#![feature(repr_simd)] + +#[repr(simd)] +struct Good(u32, u32, u32, u32); +``` |