about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-output-path/rmake.rs
blob: 74fb0a56ac6307823bb03c63af9fefb892375533 (plain)
1
2
3
4
5
6
7
8
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());
}