File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #[ unsafe( no_mangle) ]
2
+ pub fn f0 ( ) { }
3
+
4
+ #[ unsafe( link_section = ".here" ) ]
5
+ pub fn f1 ( ) { }
6
+
7
+ #[ unsafe( export_name = "f2export" ) ]
8
+ pub fn f2 ( ) { }
9
+
10
+ #[ repr( u8 ) ]
11
+ pub enum T0 { V1 }
12
+
13
+ #[ non_exhaustive]
14
+ pub enum T1 { }
Original file line number Diff line number Diff line change
1
+ //@ aux-build: reexports-attrs.rs
2
+
3
+ #![ crate_name = "foo" ]
4
+
5
+ extern crate reexports_attrs;
6
+
7
+ //@ has 'foo/fn.f0.html' '//pre[@class="rust item-decl"]' '#[no_mangle]'
8
+ pub use reexports_attrs:: f0;
9
+
10
+ //@ has 'foo/fn.f1.html' '//pre[@class="rust item-decl"]' '#[link_section = ".here"]'
11
+ pub use reexports_attrs:: f1;
12
+
13
+ //@ has 'foo/fn.f2.html' '//pre[@class="rust item-decl"]' '#[export_name = "f2export"]'
14
+ pub use reexports_attrs:: f2;
15
+
16
+ //@ has 'foo/enum.T0.html' '//pre[@class="rust item-decl"]' '#[repr(u8)]'
17
+ pub use reexports_attrs:: T0 ;
18
+
19
+ //@ has 'foo/enum.T1.html' '//pre[@class="rust item-decl"]' '#[non_exhaustive]'
20
+ pub use reexports_attrs:: T1 ;
You can’t perform that action at this time.
0 commit comments