We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 843869c commit 97a1653Copy full SHA for 97a1653
src/librustc_error_codes/error_codes/E0077.md
@@ -1,20 +1,23 @@
1
-When using the `#[simd]` attribute on a tuple struct, the elements in the tuple
2
-must be machine types so SIMD operations can be applied to them.
+A tuple struct's element isn't a machine type when using the `#[simd]`
+attribute.
3
4
-This will cause an error:
+Erroneous code example:
5
6
```compile_fail,E0077
7
#![feature(repr_simd)]
8
9
#[repr(simd)]
10
-struct Bad(String);
+struct Bad(String); // error!
11
```
12
13
-This will not:
+When using the `#[simd]` attribute on a tuple struct, the elements in the tuple
14
+must be machine types so SIMD operations can be applied to them.
15
+
16
+Fixed example:
17
18
19
20
21
-struct Good(u32, u32, u32);
22
+struct Good(u32, u32, u32); // ok!
23
0 commit comments