]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/cross-crate-links.rs
Rollup merge of #54838 - 11Takanori:fix-typo, r=petrochenkov
[rust.git] / src / test / rustdoc / cross-crate-links.rs
1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // aux-build:all-item-types.rs
12 // build-aux-docs
13
14 #![crate_name = "foo"]
15
16 #[macro_use]
17 extern crate all_item_types;
18
19 // @has 'foo/index.html' '//a[@href="../all_item_types/foo_mod/index.html"]' 'foo_mod'
20 #[doc(no_inline)]
21 pub use all_item_types::foo_mod;
22
23 // @has 'foo/index.html' '//a[@href="../all_item_types/fn.foo_ffn.html"]' 'foo_ffn'
24 #[doc(no_inline)]
25 pub use all_item_types::foo_ffn;
26
27 // @has 'foo/index.html' '//a[@href="../all_item_types/static.FOO_FSTATIC.html"]' 'FOO_FSTATIC'
28 #[doc(no_inline)]
29 pub use all_item_types::FOO_FSTATIC;
30
31 // @has 'foo/index.html' '//a[@href="../all_item_types/foreigntype.FooFType.html"]' 'FooFType'
32 #[doc(no_inline)]
33 pub use all_item_types::FooFType;
34
35 // @has 'foo/index.html' '//a[@href="../all_item_types/fn.foo_fn.html"]' 'foo_fn'
36 #[doc(no_inline)]
37 pub use all_item_types::foo_fn;
38
39 // @has 'foo/index.html' '//a[@href="../all_item_types/trait.FooTrait.html"]' 'FooTrait'
40 #[doc(no_inline)]
41 pub use all_item_types::FooTrait;
42
43 // @has 'foo/index.html' '//a[@href="../all_item_types/struct.FooStruct.html"]' 'FooStruct'
44 #[doc(no_inline)]
45 pub use all_item_types::FooStruct;
46
47 // @has 'foo/index.html' '//a[@href="../all_item_types/enum.FooEnum.html"]' 'FooEnum'
48 #[doc(no_inline)]
49 pub use all_item_types::FooEnum;
50
51 // @has 'foo/index.html' '//a[@href="../all_item_types/union.FooUnion.html"]' 'FooUnion'
52 #[doc(no_inline)]
53 pub use all_item_types::FooUnion;
54
55 // @has 'foo/index.html' '//a[@href="../all_item_types/type.FooType.html"]' 'FooType'
56 #[doc(no_inline)]
57 pub use all_item_types::FooType;
58
59 // @has 'foo/index.html' '//a[@href="../all_item_types/static.FOO_STATIC.html"]' 'FOO_STATIC'
60 #[doc(no_inline)]
61 pub use all_item_types::FOO_STATIC;
62
63 // @has 'foo/index.html' '//a[@href="../all_item_types/constant.FOO_CONSTANT.html"]' 'FOO_CONSTANT'
64 #[doc(no_inline)]
65 pub use all_item_types::FOO_CONSTANT;
66
67 // @has 'foo/index.html' '//a[@href="../all_item_types/macro.foo_macro.html"]' 'foo_macro'
68 #[doc(no_inline)]
69 pub use all_item_types::foo_macro;