2024-05-08 16:50:12 +02:00
|
|
|
// Checks that if the output folder doesn't exist, rustdoc will create it.
|
|
|
|
|
|
2025-06-16 20:24:50 +08:00
|
|
|
//@ needs-target-std
|
|
|
|
|
|
2024-08-28 11:01:40 -04:00
|
|
|
use run_make_support::{path, rustdoc};
|
2024-07-29 08:13:50 +10:00
|
|
|
|
2024-05-08 16:50:12 +02:00
|
|
|
fn main() {
|
2024-08-28 11:01:40 -04:00
|
|
|
let out_dir = path("foo/bar/doc");
|
2024-08-15 14:44:48 +02:00
|
|
|
rustdoc().input("foo.rs").out_dir(&out_dir).run();
|
2024-05-08 16:50:12 +02:00
|
|
|
assert!(out_dir.exists());
|
|
|
|
|
}
|