]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/extern-html-root-url.rs
Update upstream source from tag 'upstream/1.60.0+dfsg1'
[rustc.git] / src / test / rustdoc / extern-html-root-url.rs
CommitLineData
94222f64
XL
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
6extern crate html_root;
7extern crate no_html_root;
223e47cc 8
b7449926 9// @has extern_html_root_url/index.html
94222f64
XL
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)]
13pub use html_root::foo;
14
b7449926 15#[doc(no_inline)]
94222f64
XL
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'
18pub use no_html_root::bar;