Skip to content

Commit

Permalink
Rollup merge of #72191 - GuillaumeGomez:cleanup-e0589, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Clean up E0589 explanation

r? @Dylan-DPC
  • Loading branch information
Dylan-DPC authored May 14, 2020
2 parents 62f1840 + 31fbf33 commit d7f5e56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_error_codes/error_codes/E0589.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
The value of `N` that was specified for `repr(align(N))` was not a power
of two, or was greater than 2^29.

Erroneous code example:

```compile_fail,E0589
#[repr(align(15))] // error: invalid `repr(align)` attribute: not a power of two
enum Foo {
Expand Down

0 comments on commit d7f5e56

Please sign in to comment.