]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/static-root-path.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / rustdoc / static-root-path.rs
1 // compile-flags:-Z unstable-options --static-root-path /cache/
2
3 // @has static_root_path/struct.SomeStruct.html
4 // @matchesraw - '"/cache/main-'
5 // @!matchesraw - '"\.\./main'
6 // @matchesraw - 'data-root-path="\.\./"'
7 // @!matchesraw - '"/cache/search-index\.js"'
8 pub struct SomeStruct;
9
10 // @has src/static_root_path/static-root-path.rs.html
11 // @matchesraw - '"/cache/source-script-'
12 // @!matchesraw - '"\.\./\.\./source-script'
13 // @matchesraw - '"\.\./\.\./source-files.js"'
14 // @!matchesraw - '"/cache/source-files\.js"'
15
16 // @has settings.html
17 // @matchesraw - '/cache/settings-'
18 // @!matchesraw - '\../settings'