summaryrefslogtreecommitdiffstats
path: root/src/test/ui/repr/repr-align-assign.rs
blob: 6b7799297e89ec20bbb47ea78d2020afc8e029df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {}