Open
Description
I tried this code:
use std::fs;
fn main() {
match fs::copy("/dev/null", "bar.txt") {
Ok(_n) => (),
Err(e) => {
println!("{}", e);
()
}
}
}
I expected to see this happen:
I agree that the use case isn't super useful. But I would expect this to work and create an empty file.
Instead, this happened:
the source path is not an existing regular file
Don't hesitate to wontfix this bug...