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
6 extern crate html_root;
7 extern crate no_html_root;
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'
13 pub use html_root::foo;
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;