Skip to content

Commit d7f5e56

Browse files
authored
Rollup merge of #72191 - GuillaumeGomez:cleanup-e0589, r=Dylan-DPC
Clean up E0589 explanation r? @Dylan-DPC
2 parents 62f1840 + 31fbf33 commit d7f5e56

File tree

1 file changed

+2
-0
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-0
lines changed

src/librustc_error_codes/error_codes/E0589.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
The value of `N` that was specified for `repr(align(N))` was not a power
22
of two, or was greater than 2^29.
33

4+
Erroneous code example:
5+
46
```compile_fail,E0589
57
#[repr(align(15))] // error: invalid `repr(align)` attribute: not a power of two
68
enum Foo {

0 commit comments

Comments
 (0)