Skip to content

Commit

Permalink
Update repr_simd
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 21, 2016
1 parent d27bdaf commit 30dd087
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/librustc_typeck/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -978,18 +978,18 @@ are generic.
This will cause an error:
```compile_fail
#![feature(simd)]
#![feature(repr_simd)]
#[simd]
#[repr(simd)]
struct Bad<T>(T, T, T);
```
This will not:
```
#![feature(simd)]
#![feature(repr_simd)]
#[simd]
#[repr(simd)]
struct Good(u32, u32, u32);
```
"##,
Expand Down Expand Up @@ -1026,18 +1026,18 @@ will trigger this error.
This will cause an error:
```compile_fail
#![feature(simd)]
#![feature(repr_simd)]
#[simd]
#[repr(simd)]
struct Bad(u16, u32, u32);
```
This will not:
```
#![feature(simd)]
#![feature(repr_simd)]
#[simd]
#[repr(simd)]
struct Good(u32, u32, u32);
```
"##,
Expand All @@ -1049,18 +1049,18 @@ must be machine types so SIMD operations can be applied to them.
This will cause an error:
```compile_fail
#![feature(simd)]
#![feature(repr_simd)]
#[simd]
#[repr(simd)]
struct Bad(String);
```
This will not:
```
#![feature(simd)]
#![feature(repr_simd)]
#[simd]
#[repr(simd)]
struct Good(u32, u32, u32);
```
"##,
Expand Down

0 comments on commit 30dd087

Please sign in to comment.