diff options
Diffstat (limited to 'tests/run-make/rustdoc-output-path/rmake.rs')
| -rw-r--r-- | tests/run-make/rustdoc-output-path/rmake.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-make/rustdoc-output-path/rmake.rs b/tests/run-make/rustdoc-output-path/rmake.rs new file mode 100644 index 00000000000..74fb0a56ac6 --- /dev/null +++ b/tests/run-make/rustdoc-output-path/rmake.rs @@ -0,0 +1,9 @@ +// Checks that if the output folder doesn't exist, rustdoc will create it. + +use run_make_support::{rustdoc, tmp_dir}; + +fn main() { + let out_dir = tmp_dir().join("foo/bar/doc"); + rustdoc().input("foo.rs").output(&out_dir).run(); + assert!(out_dir.exists()); +} |
