]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/static-root-path.rs
Rollup merge of #56944 - alexcrichton:less-thin2, r=michaelwoerister
[rust.git] / src / test / rustdoc / static-root-path.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 // compile-flags:-Z unstable-options --static-root-path /cache/
12
13 // @has static_root_path/struct.SomeStruct.html
14 // @matches - '"/cache/main\.js"'
15 // @!matches - '"\.\./main\.js"'
16 // @matches - '"\.\./search-index\.js"'
17 // @!matches - '"/cache/search-index\.js"'
18 pub struct SomeStruct;
19
20 // @has src/static_root_path/static-root-path.rs.html
21 // @matches - '"/cache/source-script\.js"'
22 // @!matches - '"\.\./\.\./source-script\.js"'
23 // @matches - '"\.\./\.\./source-files.js"'
24 // @!matches - '"/cache/source-files\.js"'