This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This will cause an error:
11
11
#![feature(repr_simd)]
12
12
13
13
#[repr(simd)]
14
- struct Bad<T>(T, T, T);
14
+ struct Bad<T>(T, T, T, T );
15
15
```
16
16
17
17
This will not:
@@ -20,5 +20,5 @@ This will not:
20
20
#![feature(repr_simd)]
21
21
22
22
#[repr(simd)]
23
- struct Good(u32, u32, u32);
23
+ struct Good(u32, u32, u32, u32 );
24
24
```
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Erroneous code example:
7
7
#![feature(repr_simd)]
8
8
9
9
#[repr(simd)]
10
- struct Bad(u16, u32, u32); // error!
10
+ struct Bad(u16, u32, u32 u32 ); // error!
11
11
```
12
12
13
13
When using the ` #[simd] ` attribute to automatically use SIMD operations in tuple
@@ -20,5 +20,5 @@ Fixed example:
20
20
#![feature(repr_simd)]
21
21
22
22
#[repr(simd)]
23
- struct Good(u32, u32, u32); // ok!
23
+ struct Good(u32, u32, u32, u32 ); // ok!
24
24
```
Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ Fixed example:
19
19
#![feature(repr_simd)]
20
20
21
21
#[repr(simd)]
22
- struct Good(u32, u32, u32); // ok!
22
+ struct Good(u32, u32, u32, u32 ); // ok!
23
23
```
You can’t perform that action at this time.
0 commit comments