Description
Couldn't build with cargo build.
I tried this code:
fn main() {
println!("Hello, world!");
}
I expected to see this happen:
the program should compile fine.
Instead, this happened:
error: could not compile nanny
Caused by:
process didn't exit successfully: rustc --crate-name nanny --edition=2021 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=203 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=5a2abc74c1c30893 --out-dir D:\Projects\nanny\target\debug\deps -C incremental=D:\Projekty\nanny\target\debug\incremental -L dependency=D:\Projects\nanny\target\debug\deps
(exit code: 0xc000001d, STATUS_ILLEGAL_INSTRUCTION)
rustc --version --verbose
:
rustc 1.68.0 (2c8cc3432 2023-03-06)
binary: rustc
commit-hash: 2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74
commit-date: 2023-03-06
host: x86_64-pc-windows-msvc
release: 1.68.0
LLVM version: 15.0.6
Notes:
cargo check emits the same error.
cargo build --release works correctly.
Having Visual Studio 2022 v17.5.1 installed on my system.