Rollup merge of #33757 - GuillaumeGomez:simd, r=steveklabnik
Update simd syntax r? @steveklabnik
This commit is contained in:
commit
61b9be776e
1 changed files with 4 additions and 4 deletions
|
@ -1002,18 +1002,18 @@ operate on.
|
|||
This will cause an error:
|
||||
|
||||
```compile_fail
|
||||
#![feature(simd)]
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[simd]
|
||||
#[repr(simd)]
|
||||
struct Bad;
|
||||
```
|
||||
|
||||
This will not:
|
||||
|
||||
```
|
||||
#![feature(simd)]
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[simd]
|
||||
#[repr(simd)]
|
||||
struct Good(u32);
|
||||
```
|
||||
"##,
|
||||
|
|
Loading…
Add table
Reference in a new issue