Programming & Systems Guides
Empirical benchmarks and systems guides appear first, followed by the compiler and error-code reference archive. Browse by topic, jump to the error reference archive, or subscribe via RSS.
-
'std::format' Is Not a Member of 'std' Fix C++ · Error Reference
A C++20 program that uses std::format fails with the single error ''format' is not a member of 'std'' when the #include...
-
'std::expected' Is Not a Member of 'std' Fix C++ · Error Reference
A C++23 program that uses std::expected fails with ''expected' is not a member of 'std'' when the #include
... -
'std::any' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::any fails with ''any' is not a member of 'std'' when the #include
line is missing, and GCC... -
'std::accumulate' Is Not a Member of 'std' Fix C++ · Error Reference
A C++ program that calls std::accumulate with
, , and included fails with ''accumulate' is not... -
C++ static_assert Failed Fix C++ · Error Reference
GCC reports 'static assertion failed' when a static_assert condition is false at compile time. This guide reads the diagnostic including its note...
-
No Match for Operator== Fix C++ · Error Reference
GCC reports 'no match for operator==' when two objects of a class type are compared and the class defines no equality operator. This guide reads...
-
Marked Override Does Not Override Fix C++ · Error Reference
GCC reports 'marked override, but does not override' when a function marked override does not match any virtual function in the base class. This...
-
Cannot Bind Rvalue Reference Fix C++ · Error Reference
GCC says an rvalue reference of type 'int&&' cannot bind to an lvalue of type 'int' when a named variable is passed where a...
-
E0261 Undeclared Lifetime Name Fix Rust · Error Reference
A lifetime name such as 'a used in a function signature, struct, enum, type alias, trait, or impl block that never declares it fails with E0261, use of...
-
E0271 Type Mismatch Resolving Fix Rust · Error Reference
A bound that names an associated type, such as T
- or Iterator
- , states an equality the implementation has to meet...
- or Iterator
-
E0631 Type Mismatch in Closure Fix Rust · Error Reference
A function that takes a closure through an Fn, FnMut, or FnOnce bound fixes the types of the closure's arguments, and a closure whose annotated...
-
E0560 Struct Has No Field Named Fix Rust · Error Reference
A struct literal that names a field the struct does not declare fails with E0560, struct has no field named: the literal may only name fields the struct...
-
E0004 Non-Exhaustive Patterns Fix Rust · Error Reference
A match that does not cover every possible value of its type fails with E0004: non-exhaustive patterns. This guide reproduces E0004 exactly as Rust 1.99.1...
-
E0554 Feature on Stable Rust Fix Rust · Error Reference
A #![feature] attribute at the crate root of a program compiled with the stable release channel fails with E0554, `#![feature]` may not be used on the...
-
E0404 Expected Trait Found Struct Fix Rust · Error Reference
A generic bound, an impl header, a dyn type, or a supertrait list that names a struct instead of a trait fails with 'expected trait, found struct'...
-
E0401 Can't Use Generic Parameters Fix Rust · Error Reference
A function, type alias, struct, or enum written inside a generic function or impl cannot use the outer item's type, lifetime, or const parameters, and...
-
E0434 Can't Capture Environment Fix Rust · Error Reference
A nested fn item that uses a variable from its enclosing function fails with E0434, can't capture dynamic environment in a fn item: a function item has...
-
E0412 Cannot Find Type Fix Rust · Error Reference
E0412 was the error for a type name that is not in scope, and `rustc --explain E0412` now states that this error code is no longer emitted by the compiler...
-
E0405 Cannot Find Trait Fix Rust · Error Reference
A generic bound that names a trait the compiler cannot find fails with 'cannot find trait in this scope': the trait was never defined, never...
-
E0510 Cannot Assign in Match Guard Fix Rust · Error Reference
A match guard that assigns to the value being matched fails with 'cannot assign in match guard': while a guard runs, the matched value is held...
-
E0571 Break With Value Fix Rust · Error Reference
A `break` carrying a value can only exit a `loop` (or a labeled block); the same `break` inside a `while`, `for`, or `while let` loop fails with E0571, a...
-
E0728 Await Outside Async Fix Rust · Error Reference
An await expression is legal only inside an async function, an async block, or an async closure, and writing one anywhere else — in fn main, in a plain...
-
'std::vector' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::vector fails with ''vector' is not a member of 'std'' when the #include
line is... -
'std::unique_ptr' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::unique_ptr fails with ''unique_ptr' is not a member of 'std'' when the #include
line is... -
'std::thread' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::thread fails with ''thread' is not a member of 'std'' for two reproduced reasons: the #include...
-
'std::sort' Is Not a Member of 'std' Fix C++ · Error Reference
A program that calls std::sort fails with ''sort' is not a member of 'std'' when the #include
line is... -
'std::set' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::set fails with ''set' is not a member of 'std'' when the #include
line is missing —... -
'std::queue' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::queue fails with ''queue' is not a member of 'std'' when the #include
line is missing —... -
'std::print' Is Not a Member of 'std' Fix C++ · Error Reference
A program that calls std::print or std::println fails in one of two ways: 'fatal error: print: No such file or directory' when the standard library...
-
'std::optional' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::optional fails with ''optional' is not a member of 'std'' when the #include
line is...