]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/reexports.rs
Rollup merge of #87644 - Flying-Toast:vec-remove-note, r=the8472
[rust.git] / src / test / rustdoc / reexports.rs
1 // aux-build: reexports.rs
2
3 #![crate_name = "foo"]
4
5 extern crate reexports;
6
7 // @has 'foo/macro.addr_of.html' '//*[@class="docblock type-decl"]' 'pub macro addr_of($place : expr) {'
8 pub use reexports::addr_of;
9 // @!has 'foo/macro.addr_of_crate.html'
10 pub(crate) use reexports::addr_of_crate;
11 // @!has 'foo/macro.addr_of_self.html'
12 pub(self) use reexports::addr_of_self;
13
14 // @has 'foo/struct.Foo.html' '//*[@class="docblock type-decl"]' 'pub struct Foo;'
15 pub use reexports::Foo;
16 // @!has 'foo/struct.FooCrate.html'
17 pub(crate) use reexports::FooCrate;
18 // @!has 'foo/struct.FooSelf.html'
19 pub(self) use reexports::FooSelf;
20
21 // @has 'foo/enum.Bar.html' '//*[@class="docblock type-decl"]' 'pub enum Bar {'
22 pub use reexports::Bar;
23 // @!has 'foo/enum.BarCrate.html'
24 pub(crate) use reexports::BarCrate;
25 // @!has 'foo/enum.BarSelf.html'
26 pub(self) use reexports::BarSelf;
27
28 // @has 'foo/fn.foo.html' '//*[@class="rust fn"]' 'pub fn foo()'
29 pub use reexports::foo;
30 // @!has 'foo/fn.foo_crate.html'
31 pub(crate) use reexports::foo_crate;
32 // @!has 'foo/fn.foo_self.html'
33 pub(self) use reexports::foo_self;
34
35 // @has 'foo/type.Type.html' '//*[@class="rust typedef"]' 'pub type Type ='
36 pub use reexports::Type;
37 // @!has 'foo/type.TypeCrate.html'
38 pub(crate) use reexports::TypeCrate;
39 // @!has 'foo/type.TypeSelf.html'
40 pub(self) use reexports::TypeSelf;
41
42 // @has 'foo/union.Union.html' '//*[@class="docblock type-decl"]' 'pub union Union {'
43 pub use reexports::Union;
44 // @!has 'foo/union.UnionCrate.html'
45 pub(crate) use reexports::UnionCrate;
46 // @!has 'foo/union.UnionSelf.html'
47 pub(self) use reexports::UnionSelf;