File tree 1 file changed +14
-0
lines changed
tests/rustdoc/inline_cross
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
extern crate rustdoc_hidden;
6
6
7
+ // @has inline_hidden/index.html
8
+ // Ensures this item is not inlined.
9
+ // @has - '//*[@id="reexport.Foo"]/code' 'pub use rustdoc_hidden::Foo;'
7
10
#[ doc( no_inline) ]
8
11
pub use rustdoc_hidden:: Foo ;
9
12
13
+ // Even if the foreign item has `doc(hidden)`, we should be able to inline it.
14
+ // @has - '//*[@class="item-name"]/a[@class="struct"]' 'Inlined'
15
+ #[ doc( inline) ]
16
+ pub use rustdoc_hidden:: Foo as Inlined ;
17
+
18
+ // Even with this import, we should not see `Foo`.
19
+ // @count - '//*[@class="item-name"]' 4
20
+ // @has - '//*[@class="item-name"]/a[@class="struct"]' 'Bar'
21
+ // @has - '//*[@class="item-name"]/a[@class="fn"]' 'foo'
22
+ pub use rustdoc_hidden:: * ;
23
+
10
24
// @has inline_hidden/fn.foo.html
11
25
// @!has - '//a/@title' 'Foo'
12
26
pub fn foo ( _: Foo ) { }
You can’t perform that action at this time.
0 commit comments