summary refs log tree commit diff
path: root/src/test/ui/repr.rs
blob: a35252c41b8d90bff7aa102ad7d21816cb211edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// compile-pass

#[repr]
//^ WARN `repr` attribute must have a hint
struct _A {}

#[repr = "B"]
//^ WARN `repr` attribute isn't configurable with a literal
struct _B {}

#[repr = "C"]
//^ WARN `repr` attribute isn't configurable with a literal
struct _C {}

#[repr(C)]
struct _D {}

fn main() {}