小编Adw*_*ash的帖子

无法为要求 `rand = "^0.9.0"` 选择版本

我每次运行时都会收到此错误cargo build

error: failed to select a version for the requirement `rand = "^0.9.0"`
candidate versions found which didn't match: 0.8.5, 0.8.4, 0.8.3, ...
location searched: crates.io index
required by package `guessing_game v0.1.0 (D:\Adwait\Rust\project\guessing_game)`
Run Code Online (Sandbox Code Playgroud)

Cargo.toml看起来像这样:

error: failed to select a version for the requirement `rand = "^0.9.0"`
candidate versions found which didn't match: 0.8.5, 0.8.4, 0.8.3, ...
location searched: crates.io index
required by package `guessing_game v0.1.0 (D:\Adwait\Rust\project\guessing_game)`
Run Code Online (Sandbox Code Playgroud)

rust rust-cargo

10
推荐指数
3
解决办法
7229
查看次数

标签 统计

rust ×1

rust-cargo ×1