Update simd syntax
This commit is contained in:
parent
d27bdafc3e
commit
bbed89b4e5
@ -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…
x
Reference in New Issue
Block a user