diff options
Diffstat (limited to 'tests/ui/repr/repr-align-assign.fixed')
-rw-r--r-- | tests/ui/repr/repr-align-assign.fixed | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/repr/repr-align-assign.fixed b/tests/ui/repr/repr-align-assign.fixed new file mode 100644 index 000000000..59ca22e97 --- /dev/null +++ b/tests/ui/repr/repr-align-assign.fixed @@ -0,0 +1,13 @@ +// run-rustfix + +#![allow(dead_code)] + +#[repr(align(8))] //~ ERROR incorrect `repr(align)` attribute format + //~| ERROR incorrect `repr(align)` attribute format +struct A(u64); + +#[repr(align(8))] //~ ERROR incorrect `repr(align)` attribute format + //~| ERROR incorrect `repr(align)` attribute format +struct B(u64); + +fn main() {} |