cargo new <packagename>
on Windows 10 will not cargo run
: "error: Access is denied. (os error 5)"
#10671
Labels
C-bug
Category: bug
O-windows
OS: Windows
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
Generating a new project with Cargo makes a project that is not runnable on Microsoft Windows 10 Pro.
Steps
rustup-init.exe
(64-bit installer).cargo --version
(it reportscargo 1.60.0 (d1fd9fe2c 2022-03-01)
).cargo new <packagename>
,cd <packagename>
, and thencargo run
.Note that it outputs:
Possible Solution(s)
As a new user of Rust and Cargo, the error message is opaque and there is not much direction as what can be done next to fix this.
Version
The text was updated successfully, but these errors were encountered: