]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/cross-crate-links.rs
Auto merge of #51339 - sdroege:exact-chunks-remainder, r=alexcrichton
[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 #![feature(use_extern_macros)]
15
16 #![crate_name = "foo"]
17
18 #[macro_use]
19 extern crate all_item_types;
20
21 // @has 'foo/index.html' '//a[@href="../all_item_types/foo_mod/index.html"]' 'foo_mod'
22 #[doc(no_inline)]
23 pub use all_item_types::foo_mod;
24
25 // @has 'foo/index.html' '//a[@href="../all_item_types/fn.foo_ffn.html"]' 'foo_ffn'
26 #[doc(no_inline)]
27 pub use all_item_types::foo_ffn;
28
29 // @has 'foo/index.html' '//a[@href="../all_item_types/static.FOO_FSTATIC.html"]' 'FOO_FSTATIC'
30 #[doc(no_inline)]
31 pub use all_item_types::FOO_FSTATIC;
32
33 // @has 'foo/index.html' '//a[@href="../all_item_types/foreigntype.FooFType.html"]' 'FooFType'
34 #[doc(no_inline)]
35 pub use all_item_types::FooFType;
36
37 // @has 'foo/index.html' '//a[@href="../all_item_types/fn.foo_fn.html"]' 'foo_fn'
38 #[doc(no_inline)]
39 pub use all_item_types::foo_fn;
40
41 // @has 'foo/index.html' '//a[@href="../all_item_types/trait.FooTrait.html"]' 'FooTrait'
42 #[doc(no_inline)]
43 pub use all_item_types::FooTrait;
44
45 // @has 'foo/index.html' '//a[@href="../all_item_types/struct.FooStruct.html"]' 'FooStruct'
46 #[doc(no_inline)]
47 pub use all_item_types::FooStruct;
48
49 // @has 'foo/index.html' '//a[@href="../all_item_types/enum.FooEnum.html"]' 'FooEnum'
50 #[doc(no_inline)]
51 pub use all_item_types::FooEnum;
52
53 // @has 'foo/index.html' '//a[@href="../all_item_types/union.FooUnion.html"]' 'FooUnion'
54 #[doc(no_inline)]
55 pub use all_item_types::FooUnion;
56
57 // @has 'foo/index.html' '//a[@href="../all_item_types/type.FooType.html"]' 'FooType'
58 #[doc(no_inline)]
59 pub use all_item_types::FooType;
60
61 // @has 'foo/index.html' '//a[@href="../all_item_types/static.FOO_STATIC.html"]' 'FOO_STATIC'
62 #[doc(no_inline)]
63 pub use all_item_types::FOO_STATIC;
64
65 // @has 'foo/index.html' '//a[@href="../all_item_types/constant.FOO_CONSTANT.html"]' 'FOO_CONSTANT'
66 #[doc(no_inline)]
67 pub use all_item_types::FOO_CONSTANT;
68
69 // @has 'foo/index.html' '//a[@href="../all_item_types/macro.foo_macro.html"]' 'foo_macro'
70 #[doc(no_inline)]
71 pub use all_item_types::foo_macro;