rust Errors

105 entries

Error Code Domain Category Fix Rate Confidence Tier
error: Package does not have feature 'X' rust build_error 92% 92% ai_generated
error[E0015]: cannot call non-const fn in constants rust const-eval 91% 93% ai_generated
error[E0015]: cannot call non-const fn in const context rust const_error 88% 90% ai_generated
error[E0061]: this function takes N arguments but M were supplied rust type_error 98% 95% ai_generated
error[E0106]: missing lifetime specifier rust lifetime_error 85% 90% ai_generated
error[E0277]: `X` cannot be sent between threads safely rust concurrency_error 85% 90% ai_generated
error[E0277]: the size for values of type `str` cannot be known at compilation time rust type_error 95% 95% ai_generated
error[E0277]: the trait bound 'T: Trait' is not satisfied rust trait_error 82% 85% ai_generated
error[E0277]: the trait bound `MyType: Send` is not satisfied rust trait-system 92% 94% ai_generated
error[E0282]: type annotations needed rust type_error 95% 95% ai_generated
error[E0308]: `match` arms have incompatible types rust type_error 92% 92% ai_generated
error[E0308]: mismatched types rust type_error 90% 90% ai_generated
error[E0382]: borrow of moved value rust ownership_error 85% 88% ai_generated
error[E0382]: borrow of moved value: `x` rust ownership 94% 96% ai_generated
error[E0412]: cannot find type `X` in this scope rust type_error 95% 95% ai_generated
error[E0425]: cannot find value `x` in this scope rust name_error 92% 93% ai_generated
error[E0433]: failed to resolve: use of undeclared crate or module rust import_error 95% 95% ai_generated
error[E0499]: cannot borrow `x` as mutable more than once at a time rust ownership_error 88% 90% ai_generated
error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable rust borrow_error 85% 88% ai_generated
error[E0507]: cannot move out of borrowed content rust ownership_error 88% 90% ai_generated
error[E0521]: borrowed data escapes outside of closure rust borrow_error 84% 86% ai_generated
error[E0597]: borrowed value does not live long enough rust lifetime_error 85% 90% ai_generated
error[E0599]: no method named `method` found for struct `Type` rust type_error 90% 92% ai_generated
error: lifetime may not live long enough -- returning this value requires that `'1` must outlive `'2` rust lifetime_error 82% 85% ai_generated
can't find crate — Rust crate name has hyphens but use/extern expects underscores rust naming 92% 93% ai_generated
JsonPayloadError: Payload error: payload reached size limit rust web_framework_error 91% 93% ai_generated
called `Result::unwrap()` on an `Err` value: Arc::try_unwrap failed because there are still other strong references rust ownership_error 82% 85% ai_generated
future cannot be sent between threads safely because `Rc<T>` does not implement `Send` rust async_error 83% 87% ai_generated
cannot borrow `*self` as mutable because it is also borrowed as immutable rust borrow_error 87% 90% ai_generated
error: failed to select a version for `crate_name` which could resolve this conflict rust dependency_error 80% 83% ai_generated
called `Result::unwrap()` on an `Err` value: RecvError: receiving on a closed channel rust concurrency_error 86% 88% ai_generated
error: The argument '--flag-a' cannot be used with '--flag-b' rust cli_error 90% 92% ai_generated
thread '<unnamed>' panicked at 'a]scoped thread panicked' rust concurrency_error 83% 86% ai_generated
ConnectionError: Failed to establish a database connection rust database_error 84% 86% ai_generated
SIGSEGV: segmentation fault accessing null pointer via FFI call EGV rust ffi_error 78% 82% ai_generated
hyper::Error(Io, Kind(ConnectionReset)) rust network_error 80% 83% ai_generated
Error: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } rust io_error 87% 89% ai_generated
Err(Incomplete(Size(1))) rust parsing_error 84% 86% ai_generated
the trait `Unpin` is not implemented for `impl Future<Output = T>` rust async_error 82% 85% ai_generated
regex::Error: CompiledTooBig: compiled regex exceeds size limit rust parsing_error 85% 87% ai_generated
the trait `Deserialize<'_>` is not implemented for `MyType` rust serialization_error 90% 92% ai_generated
error returned from database: migration checksum mismatch for migration rust database_error 83% 85% ai_generated
Cannot start a runtime from within a runtime. This happens because a function attempted to block the current thread while the thread is being used to drive asynchronous tasks. rust async_runtime_error 85% 88% ai_generated
tonic::transport::Error: transport error: error trying to connect: tcp connect error rust grpc_error 82% 85% ai_generated
the trait `tower::Service<http::Request<Body>>` is not implemented rust web_framework_error 80% 83% ai_generated
the trait `X` is not implemented for `Y` rust trait_error 86% 89% ai_generated
error: the trait bound `JsValue: From<MyType>` is not satisfied rust wasm_error 82% 84% ai_generated
implementation of `Send` is not general enough rust async_error 75% 80% ai_generated
error[E0133]: call to unsafe function is unsafe and requires unsafe block E0133 rust type_error 90% 85% ai_generated
error[E0599]: no method named `unwrap_or_else` found for struct `std::option::Option<T>` in the current scope E0599 rust type_error 90% 85% ai_generated
error[E0716]: temporary value dropped while borrowed E0716 rust type_error 90% 85% ai_generated
error[E0308]: mismatched types -- expected `impl Future<Output = ()>`, found `()` E0308 rust type_error 90% 85% ai_generated
error[E0432]: unresolved import `crate::module::Item` -- could not find `Item` in `module` E0432 rust module_error 90% 85% ai_generated
error[E0509]: cannot move out of type `X`, which implements the `Drop` trait E0509 rust type_error 85% 88% ai_generated
error[E0596]: cannot borrow data in a dereference of `*const T` as mutable E0596 rust type_error 85% 85% ai_generated
error[E0261]: use of undeclared lifetime name `'a` E0261 rust type_error 90% 87% ai_generated
error[E0515]: cannot return value referencing local variable `x` E0515 rust type_error 90% 86% ai_generated
error[E0119]: conflicting implementations of trait `Trait` for type `Type` E0119 rust type_error 85% 84% ai_generated
error[E0053]: parameters differ in bounds: `T: Trait` vs `T: OtherTrait` E0053 rust type_error 88% 83% ai_generated
error[E0277]: `Cell<i32>` cannot be shared between threads safely E0277 rust type_error 85% 88% ai_generated
error[E0509]: cannot move out of type `MyType`, which implements the `Drop` trait E0509 rust type_error 80% 85% ai_generated
error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely E0277 rust type_error 85% 85% ai_generated
error[E0599]: no method named `parse` found for struct `String` in the current scope E0599 rust type_error 90% 82% ai_generated
error[E0308]: mismatched types: expected `usize`, found `u32` E0308 rust type_error 90% 83% ai_generated
error[E0432]: unresolved import `crate::module::self` E0432 rust module_error 85% 80% ai_generated
error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely `Rc<()>` is not `Send` because `Rc` is not `Send` E0277 rust type_error 90% 85% ai_generated
error[E0597]: borrowed value does not live long enough note: argument requires that `value` is borrowed for `'static` E0597 rust type_error 87% 82% ai_generated
error[E0308]: `match` arms have incompatible types note: expected `Result<(), MyError>` found `Result<(), OtherError>` E0308 rust type_error 92% 83% ai_generated
error[E0433]: failed to resolve: use of undeclared crate or module `my_crate` --> src/main.rs:2:5 | 2 | use my_crate::some_module; | ^^^^^^^^ use of undeclared crate or module `my_crate` E0433 rust module_error 93% 88% ai_generated
error[E0502]: cannot borrow `vec` as mutable because it is also borrowed as immutable --> src/main.rs:10:5 | 8 | let first = &vec[0]; | ------ immutable borrow occurs here 9 | vec.push(1); 10 | println!("{}", first); | ^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow later used here E0502 rust type_error 88% 86% ai_generated
error[E0599]: no method named `unwrap_or_else` found for enum `std::result::Result<(), Box<dyn std::error::Error>>` in the current scope note: the method `unwrap_or_else` exists but the following trait bounds were not satisfied: `std::result::Result<(), Box<dyn std::error::Error>>: UnwrapOrElse` E0599 rust type_error 92% 81% ai_generated
error[E0271]: type mismatch resolving `<X as Y>::Z` -- expected bound lifetime parameter `'a`, found concrete lifetime E0271 rust type_error 78% 85% ai_generated
error[E0080]: unable to infer closure type; the closure requires a type annotation due to ambiguous return type E0080 rust type_error 82% 88% ai_generated
error[E0583]: file not found for module `module_name` E0583 rust build_error 95% 90% ai_generated
error[E0193]: cannot destructure a type that implements `Drop`; use `std::mem::ManuallyDrop` E0193 rust type_error 80% 87% ai_generated
error[E0626]: borrow may still be in use when pattern guard evaluates E0626 rust type_error 82% 86% ai_generated
error[E0784]: type alias bounds are not allowed on associated type `X` E0784 rust type_error 88% 89% ai_generated
error[E0308]: mismatched types: expected `usize`, found `f64` E0308 rust type_error 92% 88% ai_generated
error[E0432]: unresolved import `crate::module::Item` E0432 rust module_error 90% 85% ai_generated
error[E0599]: no method named `method` found for struct `Box<dyn Trait>` in the current scope E0599 rust type_error 85% 86% ai_generated
error[E0277]: `Rc<dyn Trait>` cannot be sent between threads safely E0277 rust type_error 90% 85% ai_generated
error[E0432]: unresolved import `crate::module::submodule` -- could not find `submodule` in `module` E0432 rust module_error 92% 88% ai_generated
error[E0437]: type `X` does not implement trait `Y` because `Z` is not satisfied E0437 rust type_error 82% 85% ai_generated
error[E0594]: cannot assign to data in an `Arc` E0594 rust type_error 90% 88% ai_generated
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types E0512 rust type_error 85% 87% ai_generated
error[E0706]: thread-local variable cannot be borrowed across a yield point E0706 rust type_error 78% 83% ai_generated
error[E0080]: constant evaluation error: division by zero E0080 rust const-eval 95% 90% ai_generated
error[E0759]: `X` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement E0759 rust type_error 80% 84% ai_generated
error[E0277]: the trait bound `T: From<U>` is not satisfied E0277 rust type_error 90% 88% ai_generated
error: RecvTimeoutError::Timeout rust runtime_error 80% 85% ai_generated
error[E0432]: unresolved import `crate::module::submodule::Item` E0432 rust build_error 95% 90% ai_generated
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used by another runtime. rust runtime_error 85% 87% ai_generated
error: the package `crate_name` requires rustc >= X.Y.Z, but the current rustc version is A.B.C rust install_error 90% 89% ai_generated
error[E0277]: the trait bound `[closure@...]: MyTrait` is not satisfied E0277 rust type_error 80% 85% ai_generated
thread 'tokio-runtime-worker' panicked at 'Cannot drop a runtime in a context where blocking is not allowed' rust runtime_error 82% 87% ai_generated
error[E0599]: no method named `find` found for struct `HashMap<String, i32>` in the current scope E0599 rust type_error 90% 88% ai_generated
error[E0308]: mismatched types -- expected `i32`, found `u32` E0308 rust type_error 95% 90% ai_generated
error[E0277]: `Rc<RefCell<dyn Trait>>` cannot be sent between threads safely E0277 rust type_error 85% 85% ai_generated
error[E0599]: no method named `foo` found for struct `Box<dyn Trait>` in the current scope E0599 rust type_error 88% 82% ai_generated
error[E0277]: the trait bound `RefCell<i32>: std::marker::Sync` is not satisfied E0277 rust type_error 90% 85% ai_generated
error[E0308]: `if` and `else` have incompatible types E0308 rust type_error 92% 88% ai_generated
error[E0599]: no method named `iter` found for struct `std::collections::HashMap<String, i32>` in the current scope E0599 rust type_error 93% 87% ai_generated
error[E0432]: unresolved import `my-crate` -- could not find `my-crate` in the crate root E0432 rust module_error 98% 90% ai_generated
error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable in match guard E0502 rust type_error 78% 83% ai_generated
error[E0080]: it is undefined behavior to cast `bool` to `char` E0080 rust type_error 95% 86% ai_generated