]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/intra-doc/reexport-additional-docs.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / reexport-additional-docs.rs
1 // aux-build:intra-link-reexport-additional-docs.rs
2 // build-aux-docs
3 #![crate_name = "foo"]
4 extern crate inner;
5
6 // @has foo/struct.Inner.html '//a[@href="../foo/fn.with_code.html"]' 'crate::with_code'
7 /// [crate::with_code]
8 // @has - '//a[@href="../foo/fn.with_code.html"]' 'different text'
9 /// [different text][with_code]
10 // @has - '//a[@href="../foo/fn.me_too.html"]' 'me_too'
11 #[doc = "[me_too]"]
12 // @has - '//a[@href="../foo/fn.me_three.html"]' 'reference link'
13 /// This [reference link]
14 #[doc = "has an attr in the way"]
15 ///
16 /// [reference link]: me_three
17 // Should still resolve links from the original module in that scope
18 // @has - '//a[@href="../inner/fn.f.html"]' 'f()'
19 pub use inner::Inner;
20
21 pub fn with_code() {}
22 pub fn me_too() {}
23 pub fn me_three() {}