]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-align.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / repr / repr-align.stderr
1 error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
2   --> $DIR/repr-align.rs:12:8
3    |
4 LL | #[repr(align(16.0))] //~ ERROR: invalid `repr(align)` attribute: not an unsuffixed integer
5    |        ^^^^^^^^^^^
6
7 error[E0589]: invalid `repr(align)` attribute: not a power of two
8   --> $DIR/repr-align.rs:15:8
9    |
10 LL | #[repr(align(15))] //~ ERROR: invalid `repr(align)` attribute: not a power of two
11    |        ^^^^^^^^^
12
13 error[E0589]: invalid `repr(align)` attribute: larger than 2^29
14   --> $DIR/repr-align.rs:18:8
15    |
16 LL | #[repr(align(4294967296))] //~ ERROR: invalid `repr(align)` attribute: larger than 2^29
17    |        ^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0589`.