]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0693.md
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / librustc_error_codes / error_codes / E0693.md
1 `align` representation hint was incorrectly declared.
2
3 Erroneous code examples:
4
5 ```compile_fail,E0693
6 #[repr(align=8)] // error!
7 struct Align8(i8);
8
9 #[repr(align="8")] // error!
10 struct Align8(i8);
11 ```
12
13 This is a syntax error at the level of attribute declarations. The proper
14 syntax for `align` representation hint is the following:
15
16 ```
17 #[repr(align(8))] // ok!
18 struct Align8(i8);
19 ```