-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
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.
sjackman and adam-azarchs
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.