Error map

cargo: failed to select a version for the requirement Cargo: error: failed to select a version for the requirement `serde = "^2.0"` — candidate versions found which didn't match: 1.0.197

Rust · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

cargo: failed to select a version for the requirement — Cargo: error: failed to select a version for the requirement `serde = "^2.0"` — candidate versions found which didn't match: 1.0.197 (Rust)cargo: fail…held broken packages — Unmet dependencies / E: Unable to correct problems, you have held broken packages (Linux)held broken packagesE0373: closure may outlive the current function — Rust: error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current function (Rust)E0373: closure may …E0277: the trait bound is not satisfied — Rust: error[E0277]: the trait bound `Foo: Display` is not satisfied / `Rc<RefCell<T>>` cannot be sent between threads safely (Rust)E0277: the trait bo…E0432: unresolved import — Rust: error[E0432]: unresolved import `crate::utils` — maybe a missing crate `utils`? (Rust)E0432: unresolved i…E0608: cannot index into a value of type — Rust: error[E0608]: cannot index into a value of type `HashSet<i32>` / `String` cannot be indexed by `{integer}` (Rust)E0608: cannot index…there is no reactor running, must be called from the context of a Tokio 1.x runtime — Rust: thread 'main' panicked: there is no reactor running, must be called from the context of a Tokio 1.x runtime (Rust)there is no reactor…feature edition2024 is required / Cargo.lock version too new — Cargo: error: failed to parse manifest — feature `edition2024` is required / lock file version 4 requires `-Znext-lockfile-bump` (Rust)feature edition2024…Blocking waiting for file lock on package cache / build directory — Cargo: Blocking waiting for file lock on package cache / on build directory (Rust)Blocking waiting fo…E0015: cannot call non-const function in constants — Rust: error[E0015]: cannot call non-const function `String::from` in constants (Rust)E0015: cannot call …E0425: cannot find value in this scope — Rust: error[E0425]: cannot find value `x` in this scope (Rust)E0425: cannot find …E0433: failed to resolve: use of undeclared type or module — Rust: error[E0433]: failed to resolve: use of undeclared type `HashMap` (Rust)E0433: failed to re…E0282: type annotations needed — Rust: error[E0282]: type annotations needed for `Vec<_>` / consider giving `x` an explicit type (Rust)E0282: type annotat…ERESOLVE — npm ERR! code ERESOLVE — unable to resolve dependency tree (npm)ERESOLVEMODULE_NOT_FOUND — Error: Cannot find module 'x' (MODULE_NOT_FOUND) (Node.js)MODULE_NOT_FOUNDCould not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveundefined reference to pthread_create — C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`) (C/C++)undefined reference…terminate called without an active exception — C++: terminate called without an active exception — std::thread destroyed while joinable (C/C++)terminate called wi…E0505: cannot move out of value because it is borrowed — Rust: error[E0505]: cannot move out of `s` because it is borrowed (Rust)E0505: cannot move …E0308 — Rust: error[E0308]: mismatched types — expected `X`, found `Y` (Rust)E0308E0599: no method named found for type — Rust: error[E0599]: no method named `push_str` found for struct `Vec<String>` in the current scope (Rust)E0599: no method na…E0004: non-exhaustive patterns — Rust: error[E0004]: non-exhaustive patterns: `None` not covered (Rust)E0004: non-exhausti…declared and not used — Go: declared and not used: x / "fmt" imported and not used (Go)declared and not us…cannot find package in any of GOROOT / GOPATH — Go: cannot find package "github.com/pkg/errors" in any of: /usr/local/go/src/github.com/pkg/errors (from $GOROOT) /go/src/github.com/pkg/errors (from $GOPATH) (Go)cannot find package…go: updates to go.mod needed — Go: go: updates to go.mod needed; to update it: go mod tidy (Go)go: updates to go.m…panic: index out of bounds: the len is N but the index is M — Rust: thread 'main' panicked at src/main.rs:5:5: index out of bounds: the len is 3 but the index is 3 (Rust)panic: index out of…cargo: failed to get from registry (spurious network error) — Cargo: warning: spurious network error (2 tries remaining): [35] SSL connect error / error: failed to download from `https://index.crates.io/...` (Rust)cargo: failed to ge…E0728: await is only allowed inside async functions and blocks — Rust: error[E0728]: `await` is only allowed inside `async` functions and blocks (Rust)E0728: await is onl…E0752: main function is not allowed to be async — Rust: error[E0752]: `main` function is not allowed to be `async` (Rust)E0752: main functio…E0521: borrowed data escapes outside of function — Rust: error[E0521]: borrowed data escapes outside of function — `data` escapes the function body here (tokio::spawn requires 'static) (Rust)E0521: borrowed dat…E0507: cannot move out of a shared reference / index — Rust: error[E0507]: cannot move out of `self.name` which is behind a shared reference (Rust)E0507: cannot move …E0384: cannot assign twice to immutable variable — Rust: error[E0384]: cannot assign twice to immutable variable `x` (Rust)E0384: cannot assig…E0061: this function takes N arguments but M were supplied — Rust: error[E0061]: this function takes 2 arguments but 1 argument was supplied (Rust)E0061: this functio…E0499: cannot borrow as mutable more than once at a time — Rust: error[E0499]: cannot borrow `v` as mutable more than once at a time (Rust)E0499: cannot borro…E0106: missing lifetime specifier — Rust: error[E0106]: missing lifetime specifier — this function's return type contains a borrowed value, but the signature does not say which one of `x`'s 2 lifetimes it is borrowed from (Rust)E0106: missing life…E0597: borrowed value does not live long enough — Rust: error[E0597]: `x` does not live long enough — borrowed value does not live long enough (Rust)E0597: borrowed val…invalid conversion from — C++: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] (C/C++)invalid conversion …discards qualifiers — C++: error: passing 'const X' as 'this' argument discards qualifiers [-fpermissive] (C/C++)discards qualifiersE0133: call to unsafe function requires unsafe block — Rust: error[E0133]: call to unsafe function `foo` is unsafe and requires unsafe function or block (Rust)E0133: call to unsa…was not declared in this scope — C++: error: 'x' was not declared in this scope (undeclared identifier) (C/C++)was not declared in…C2065 — MSVC: error C2065: 'x': undeclared identifier (C/C++)C2065E0412: cannot find type in this scope — Rust: error[E0412]: cannot find type `User` in this scope (Rust)E0412: cannot find …missing go.sum entry — Go: missing go.sum entry for module providing package github.com/pkg/errors (imported by app); to add: go get app (Go)missing go.sum entryno required module provides package — Go: no required module provides package github.com/foo/bar; to add it: go get github.com/foo/bar (Go)no required module …invalid version: unknown revision — Go: go: github.com/foo/bar@v1.2.3: invalid version: unknown revision v1.2.3 (Go)invalid version: un…E0038: the trait cannot be made into an object — Rust: error[E0038]: the trait `Shape` cannot be made into an object (not dyn compatible) (Rust)E0038: the trait ca…E0271: type mismatch resolving associated type — Rust: error[E0271]: type mismatch resolving `<impl Iterator as Iterator>::Item == i32` (Rust)E0271: type mismatc…

Directly related (12)

held broken packagesLinux

Unmet dependencies / E: Unable to correct problems, you have held broken packages

apt can’t find a set of package versions that satisfies all dependencies — usually mixed repositories or a package from another r…

E0373: closure may outlive the current functionRust

Rust: error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current function

A closure borrowing a local is passed somewhere that may outlive it (thread::spawn, tokio::spawn, returned closures).

E0277: the trait bound is not satisfiedRust

Rust: error[E0277]: the trait bound `Foo: Display` is not satisfied / `Rc<RefCell<T>>` cannot be sent between threads safely

A type doesn't implement a trait required by a function, macro or generic bound.

E0432: unresolved importRust

Rust: error[E0432]: unresolved import `crate::utils` — maybe a missing crate `utils`?

A `use` path doesn't point to an existing module, crate or item.

E0608: cannot index into a value of typeRust

Rust: error[E0608]: cannot index into a value of type `HashSet<i32>` / `String` cannot be indexed by `{integer}`

The type doesn't support `[]` indexing (or not with that index type).

there is no reactor running, must be called from the context of a Tokio 1.x runtimeRust

Rust: thread 'main' panicked: there is no reactor running, must be called from the context of a Tokio 1.x runtime

A Tokio API (timer, TCP, `tokio::spawn`) was used outside a running Tokio runtime.

feature edition2024 is required / Cargo.lock version too newRust

Cargo: error: failed to parse manifest — feature `edition2024` is required / lock file version 4 requires `-Znext-lockfile-bump`

Your Cargo is older than the manifest or lockfile requires.

Blocking waiting for file lock on package cache / build directoryRust

Cargo: Blocking waiting for file lock on package cache / on build directory

Another cargo process (or rust-analyzer/IDE) holds the lock, so this command waits.

E0015: cannot call non-const function in constantsRust

Rust: error[E0015]: cannot call non-const function `String::from` in constants

A `const`/`static` initializer used something that can't run at compile time.

E0425: cannot find value in this scopeRust

Rust: error[E0425]: cannot find value `x` in this scope

The identifier (variable, function, constant) isn't defined where it's used.

E0433: failed to resolve: use of undeclared type or moduleRust

Rust: error[E0433]: failed to resolve: use of undeclared type `HashMap`

A path starts with a name that isn't in scope (a type or module you didn't import).

E0282: type annotations neededRust

Rust: error[E0282]: type annotations needed for `Vec<_>` / consider giving `x` an explicit type

The compiler can't infer a type from the available information.

Two steps away (34)

ERESOLVEnpm

npm ERR! code ERESOLVE — unable to resolve dependency tree

npm 7+ found conflicting peer dependency requirements and refuses to install a broken tree.

MODULE_NOT_FOUNDNode.js

Error: Cannot find module 'x' (MODULE_NOT_FOUND)

Node can’t resolve the module path — the package isn’t installed, or a relative path/extension is wrong.

Could not resolveAndroid

Gradle: Could not resolve all files for configuration / Could not resolve dependency

Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.

undefined reference to pthread_createC/C++

C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`)

Your program uses threads (or another system library) but the linker was not told to link it.

terminate called without an active exceptionC/C++

C++: terminate called without an active exception — std::thread destroyed while joinable

A `std::thread` object was destroyed (or reassigned) while its thread was still running, so the C++ runtime called `std::terminat…

E0505: cannot move out of value because it is borrowedRust

Rust: error[E0505]: cannot move out of `s` because it is borrowed

You moved a value while a reference to it was still in use.

E0308Rust

Rust: error[E0308]: mismatched types — expected `X`, found `Y`

A value’s type doesn’t match what the context expects — common with &str vs String, Option/Result vs plain values, and integer ty…

E0599: no method named found for typeRust

Rust: error[E0599]: no method named `push_str` found for struct `Vec<String>` in the current scope

The type doesn't have that method — wrong type, trait not in scope, or missing derive/feature.

E0004: non-exhaustive patternsRust

Rust: error[E0004]: non-exhaustive patterns: `None` not covered

A `match` doesn't handle every possible value of the type.

declared and not usedGo

Go: declared and not used: x / "fmt" imported and not used

Go refuses to compile code with unused local variables or unused imports.

cannot find package in any of GOROOT / GOPATHGo

Go: cannot find package "github.com/pkg/errors" in any of: /usr/local/go/src/github.com/pkg/errors (from $GOROOT) /go/src/github.com/pkg/errors (from $GOPATH)

Go could not locate an imported package — it is not downloaded, the module is not initialised, or GOPATH mode is in effect.

go: updates to go.mod neededGo

Go: go: updates to go.mod needed; to update it: go mod tidy

`go.mod` is out of sync with the imports in your code, and Go is running with `-mod=readonly` (the default).

panic: index out of bounds: the len is N but the index is MRust

Rust: thread 'main' panicked at src/main.rs:5:5: index out of bounds: the len is 3 but the index is 3

A Vec/array/slice was indexed past its length.

cargo: failed to get from registry (spurious network error)Rust

Cargo: warning: spurious network error (2 tries remaining): [35] SSL connect error / error: failed to download from `https://index.crates.io/...`

Cargo couldn't reach crates.io (network, proxy, TLS or DNS issues).

E0728: await is only allowed inside async functions and blocksRust

Rust: error[E0728]: `await` is only allowed inside `async` functions and blocks

You used `.await` in a normal (sync) function or closure.

E0752: main function is not allowed to be asyncRust

Rust: error[E0752]: `main` function is not allowed to be `async`

`async fn main()` needs a runtime attribute (Tokio/async-std), the std `main` can't be async.

E0521: borrowed data escapes outside of functionRust

Rust: error[E0521]: borrowed data escapes outside of function — `data` escapes the function body here (tokio::spawn requires 'static)

A reference was passed to something requiring `'static` (spawn tasks/threads) but it borrows local data.

E0507: cannot move out of a shared reference / indexRust

Rust: error[E0507]: cannot move out of `self.name` which is behind a shared reference

You tried to take ownership of a value through a reference (or from a Vec/Option behind `&`).

E0384: cannot assign twice to immutable variableRust

Rust: error[E0384]: cannot assign twice to immutable variable `x`

You reassigned a variable declared without `mut`.

E0061: this function takes N arguments but M were suppliedRust

Rust: error[E0061]: this function takes 2 arguments but 1 argument was supplied

A call has too few or too many arguments for the function signature.

E0499: cannot borrow as mutable more than once at a timeRust

Rust: error[E0499]: cannot borrow `v` as mutable more than once at a time

Two mutable references to the same value were alive at once, which Rust forbids.

E0106: missing lifetime specifierRust

Rust: error[E0106]: missing lifetime specifier — this function's return type contains a borrowed value, but the signature does not say which one of `x`'s 2 lifetimes it is borrowed from

The compiler can't infer which input reference the returned/stored reference is tied to.

E0597: borrowed value does not live long enoughRust

Rust: error[E0597]: `x` does not live long enough — borrowed value does not live long enough

A reference outlives the value it points to (the value is dropped first).

invalid conversion fromC/C++

C++: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

C++ forbids silently dropping `const` or converting between unrelated pointer types — typically a string literal assigned to `cha…

discards qualifiersC/C++

C++: error: passing 'const X' as 'this' argument discards qualifiers [-fpermissive]

A const object (or const reference) is calling a method that is not declared const, which could modify it.

E0133: call to unsafe function requires unsafe blockRust

Rust: error[E0133]: call to unsafe function `foo` is unsafe and requires unsafe function or block

You called an `unsafe` function (or dereferenced a raw pointer / accessed a `static mut`) outside `unsafe`.

was not declared in this scopeC/C++

C++: error: 'x' was not declared in this scope (undeclared identifier)

The compiler met a name it has never seen: it is misspelled, declared later, out of scope, or its header or namespace is missing.

C2065C/C++

MSVC: error C2065: 'x': undeclared identifier

Visual C++ met a name it has not seen declared — a typo, a missing header or namespace, or use outside its scope.

E0412: cannot find type in this scopeRust

Rust: error[E0412]: cannot find type `User` in this scope

A type name isn't defined or imported in the current module.

missing go.sum entryGo

Go: missing go.sum entry for module providing package github.com/pkg/errors (imported by app); to add: go get app

`go.sum` lacks the checksum for a dependency that your build needs.

no required module provides packageGo

Go: no required module provides package github.com/foo/bar; to add it: go get github.com/foo/bar

The code imports a package whose module is not listed in `go.mod`.

invalid version: unknown revisionGo

Go: go: github.com/foo/bar@v1.2.3: invalid version: unknown revision v1.2.3

Go cannot fetch the requested module version — the tag or branch doesn't exist, the repository is private or the proxy hasn't see…

E0038: the trait cannot be made into an objectRust

Rust: error[E0038]: the trait `Shape` cannot be made into an object (not dyn compatible)

You used `dyn Trait` for a trait whose methods aren't object-safe (generic methods, `Self` returns, `Sized`).

E0271: type mismatch resolving associated typeRust

Rust: error[E0271]: type mismatch resolving `<impl Iterator as Iterator>::Item == i32`

A trait's associated type (Iterator::Item, Future::Output) doesn't match what's expected.