Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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