Skip to content

Commit a4bab7c

Browse files
committed
Update docs with powers-of-two
1 parent f39f1a4 commit a4bab7c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/rustc_error_codes/src/error_codes/E0074.md

+2-2
Original file line numberDiff line numberDiff 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

1717
This 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
```

compiler/rustc_error_codes/src/error_codes/E0076.md

+2-2
Original file line numberDiff line numberDiff 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

1313
When 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
```

compiler/rustc_error_codes/src/error_codes/E0077.md

+1-1
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)