Closed
Description
I tried this code:
// On a CentOS 7 VM, where the current directory is an NFS mount containing a file called "a" with any content
use std::fs;
fn main() {
println!("Hello, world!");
fs::copy("a", "b").unwrap();
}
I expected to see this happen: The file is successfully copied
Instead, this happened:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 95, kind: Other, message: "Operation not Supported" }', src/main.rs:4:4
Meta
rustc --version --verbose
:
Apologies for screenshots, I'm running in a VM I can't easily copy/paste out of.
See also rust-lang/rustup#2452, which has a likely explanation of the cause of this.