mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
Rollup merge of #33757 - GuillaumeGomez:simd, r=steveklabnik
Update simd syntax r? @steveklabnik
This commit is contained in:
@@ -1002,18 +1002,18 @@ struct Foo { x: Option<Box<Foo>> }
|
||||
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);
|
||||
```
|
||||
"##,
|
||||
|
||||
Reference in New Issue
Block a user