Skip to content

Commit 31fbf33

Browse files
Clean up E0589 explanation
1 parent 97f3eee commit 31fbf33

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)