about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-output-path/rmake.rs
blob: cece914e947bc559883f8bca01f7ef2cc30600e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Checks that if the output folder doesn't exist, rustdoc will create it.

//@ needs-target-std

use run_make_support::{path, rustdoc};

fn main() {
    let out_dir = path("foo/bar/doc");
    rustdoc().input("foo.rs").out_dir(&out_dir).run();
    assert!(out_dir.exists());
}