mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
e72fba4160
Since the directory that contains source files is called `src`, it makes sense to name the scripts that way, too.
19 lines
603 B
Rust
19 lines
603 B
Rust
// compile-flags:-Z unstable-options --static-root-path /cache/
|
|
|
|
// @has static_root_path/struct.SomeStruct.html
|
|
// @matchesraw - '"/cache/main-'
|
|
// @!matchesraw - '"\.\./main'
|
|
// @matchesraw - 'data-root-path="\.\./"'
|
|
// @!matchesraw - '"/cache/search-index\.js"'
|
|
pub struct SomeStruct;
|
|
|
|
// @has src/static_root_path/static-root-path.rs.html
|
|
// @matchesraw - '"/cache/src-script-'
|
|
// @!matchesraw - '"\.\./\.\./src-script'
|
|
// @matchesraw - '"\.\./\.\./src-files.js"'
|
|
// @!matchesraw - '"/cache/src-files\.js"'
|
|
|
|
// @has settings.html
|
|
// @matchesraw - '/cache/settings-'
|
|
// @!matchesraw - '\../settings'
|