]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/extern-html-root-url.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / rustdoc / extern-html-root-url.rs
1 // compile-flags:-Z unstable-options --extern-html-root-url html_root=https://example.com/override --extern-html-root-url no_html_root=https://example.com/override
2 // aux-build:html_root.rs
3 // aux-build:no_html_root.rs
4 // NOTE: intentionally does not build any auxiliary docs
5
6 extern crate html_root;
7 extern crate no_html_root;
8
9 // @has extern_html_root_url/index.html
10 // `html_root_url` should override `--extern-html-root-url`
11 // @has - '//a/@href' 'https://example.com/html_root/html_root/fn.foo.html'
12 #[doc(no_inline)]
13 pub use html_root::foo;
14
15 #[doc(no_inline)]
16 // `--extern-html-root-url` should apply if no `html_root_url` is given
17 // @has - '//a/@href' 'https://example.com/override/no_html_root/fn.bar.html'
18 pub use no_html_root::bar;