From 31fbf33679a9b018576058d37b4f6cf9beec1b14 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 14 May 2020 11:51:39 +0200 Subject: [PATCH] Clean up E0589 explanation --- src/librustc_error_codes/error_codes/E0589.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_error_codes/error_codes/E0589.md b/src/librustc_error_codes/error_codes/E0589.md index 5e15a875b0ba7..8a4f8d2172585 100644 --- a/src/librustc_error_codes/error_codes/E0589.md +++ b/src/librustc_error_codes/error_codes/E0589.md @@ -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 {