]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0075.md
Auto merge of #66396 - smmalis37:pythontest, r=alexcrichton
[rust.git] / src / librustc_error_codes / error_codes / E0075.md
1 The `#[simd]` attribute can only be applied to non empty tuple structs, because
2 it doesn't make sense to try to use SIMD operations when there are no values to
3 operate on.
4
5 This will cause an error:
6
7 ```compile_fail,E0075
8 #![feature(repr_simd)]
9
10 #[repr(simd)]
11 struct Bad;
12 ```
13
14 This will not:
15
16 ```
17 #![feature(repr_simd)]
18
19 #[repr(simd)]
20 struct Good(u32);
21 ```