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:
1111#![feature(repr_simd)]
1212
1313#[repr(simd)]
14- struct Bad<T>(T, T, T);
14+ struct Bad<T>(T, T, T, T );
1515```
1616
1717This will not:
@@ -20,5 +20,5 @@ This will not:
2020#![feature(repr_simd)]
2121
2222#[repr(simd)]
23- struct Good(u32, u32, u32);
23+ struct Good(u32, u32, u32, u32 );
2424```
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Erroneous code example:
77#![feature(repr_simd)]
88
99#[repr(simd)]
10- struct Bad(u16, u32, u32); // error!
10+ struct Bad(u16, u32, u32 u32 ); // error!
1111```
1212
1313When using the ` #[simd] ` attribute to automatically use SIMD operations in tuple
@@ -20,5 +20,5 @@ Fixed example:
2020#![feature(repr_simd)]
2121
2222#[repr(simd)]
23- struct Good(u32, u32, u32); // ok!
23+ struct Good(u32, u32, u32, u32 ); // ok!
2424```
Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ Fixed example:
1919#![feature(repr_simd)]
2020
2121#[repr(simd)]
22- struct Good(u32, u32, u32); // ok!
22+ struct Good(u32, u32, u32, u32 ); // ok!
2323```
You can’t perform that action at this time.
0 commit comments