]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0075.md
New upstream version 1.41.1+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0075.md
1 A `#[simd]` attribute was applied to an empty tuple struct.
2
3 Erroneous code example:
4
5 ```compile_fail,E0075
6 #![feature(repr_simd)]
7
8 #[repr(simd)]
9 struct Bad; // error!
10 ```
11
12 The `#[simd]` attribute can only be applied to non empty tuple structs, because
13 it doesn't make sense to try to use SIMD operations when there are no values to
14 operate on.
15
16 Fixed example:
17
18 ```
19 #![feature(repr_simd)]
20
21 #[repr(simd)]
22 struct Good(u32); // ok!
23 ```