]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr.rs
Auto merge of #56079 - mark-i-m:patch-1, r=nikomatsakis
[rust.git] / src / test / ui / repr.rs
1 // compile-pass
2
3 #[repr]
4 //^ WARN `repr` attribute must have a hint
5 struct _A {}
6
7 #[repr = "B"]
8 //^ WARN `repr` attribute isn't configurable with a literal
9 struct _B {}
10
11 #[repr = "C"]
12 //^ WARN `repr` attribute isn't configurable with a literal
13 struct _C {}
14
15 #[repr(C)]
16 struct _D {}
17
18 fn main() {}