Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Update ui tests
  • Loading branch information
GuillaumeGomez committed Oct 6, 2019
commit 57cb8819ee78f2debf24d2e123c78796204db8c9
7 changes: 2 additions & 5 deletions src/librustc/error_codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1705,12 +1705,9 @@ Conflicting representation hints have been used on a same item.

Erroneous code example:

```compile_fail,E0566
# #![deny(warnings)]
# fn main() {
#[repr(u32, u64)] // error!
```
#[repr(u32, u64)] // warning!
enum Repr { A }
# }
```

In most cases (if not all), using just one representation hint is more than
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/conflicting-repr-hints.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ LL | | }

error: aborting due to 8 previous errors

For more information about this error, try `rustc --explain E0566`.
3 changes: 2 additions & 1 deletion src/test/ui/feature-gates/feature-gate-repr-simd.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ LL | #[repr(simd)]

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
Some errors have detailed explanations: E0566, E0658.
For more information about an error, try `rustc --explain E0566`.