File tree 2 files changed +39
-5
lines changed
tests/rustdoc/inline_cross
2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 1
- #[ repr( C ) ]
2
- pub struct Foo {
1
+ #![ feature( repr_simd) ]
2
+
3
+ #[ repr( C , align( 8 ) ) ]
4
+ pub struct ReprC {
3
5
field : u8 ,
4
6
}
7
+ #[ repr( simd, packed( 2 ) ) ]
8
+ pub struct ReprSimd {
9
+ field : u8 ,
10
+ }
11
+ #[ repr( transparent) ]
12
+ pub struct ReprTransparent {
13
+ field : u8 ,
14
+ }
15
+ #[ repr( isize ) ]
16
+ pub enum ReprIsize {
17
+ Bla ,
18
+ }
19
+ #[ repr( u8 ) ]
20
+ pub enum ReprU8 {
21
+ Bla ,
22
+ }
Original file line number Diff line number Diff line change 7
7
8
8
extern crate repr;
9
9
10
- // @has 'foo/struct.Foo .html'
11
- // @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(C)]'
10
+ // @has 'foo/struct.ReprC .html'
11
+ // @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(C, align(8) )]'
12
12
#[ doc( inline) ]
13
- pub use repr:: Foo ;
13
+ pub use repr:: ReprC ;
14
+ // @has 'foo/struct.ReprSimd.html'
15
+ // @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(simd, packed(2))]'
16
+ #[ doc( inline) ]
17
+ pub use repr:: ReprSimd ;
18
+ // @has 'foo/struct.ReprTransparent.html'
19
+ // @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(transparent)]'
20
+ #[ doc( inline) ]
21
+ pub use repr:: ReprTransparent ;
22
+ // @has 'foo/enum.ReprIsize.html'
23
+ // @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(isize)]'
24
+ #[ doc( inline) ]
25
+ pub use repr:: ReprIsize ;
26
+ // @has 'foo/enum.ReprU8.html'
27
+ // @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(u8)]'
28
+ #[ doc( inline) ]
29
+ pub use repr:: ReprU8 ;
You can’t perform that action at this time.
0 commit comments