Rust
E0782 Trait Object Needs dyn Fix
A trait name alone is not a type you can put behind a pointer. Wherever a trait object type is written - in a Box, behind a reference, in a signature, a field, or a cast - the type starts with dyn, and leaving it off is E0782. This guide works the positions that draw the error and matches each one to the same one-word repair, then separates the positions where the compiler offers two other repairs that are usually the better fix.
Written November 29, 2026 · Tested with Rust 1.99.1 · 21 min read
- The rule underneath: a trait object type starts with dyn
- How to read the diagnostic
- The first failure: a Box without dyn
- The second failure: a reference without dyn
Written November 29, 2026
Tested with Rust 1.99.1
What this guide is
Error E0782 is a trait object type written without dyn. The error codes index states it in one line - "Trait objects must include the dyn keyword" - and its example is a function taking Box<Foo>, marked "error!", repaired by writing the parameter as Box<dyn Foo>, marked "ok!". The index gives the reason in one sentence: without dyn it is harder to see that the value is a trait object and not simply a heap-allocated type called Foo. It also notes the history: "This used to be allowed before edition 2021, but is now an error."
A trait object is how Rust calls methods on a value whose concrete type is only known at runtime. The type of such a value is not the trait name - it is the trait name made into a type by dyn, used behind a pointer: Box<dyn Shape>, &dyn Shape. Writing the trait name alone in a type position asks the compiler to treat a trait as a type, and the diagnostic says exactly that: "expected a type, found a trait". The defect is never in the value being boxed or borrowed; it is in the type written around it.
The forms in this guide each reproduce E0782 with a small, complete program: a Box, a reference, a function argument, a return type, a struct field, a vector element type, and a bounded trait object, each followed by its repair. The traps then cover the positions the first repair does not reach: a type alias, a cast, a signature with two bare traits, the pre-2021 editions where the same code only warns, and the two different errors that can appear once dyn is written - a trait that is not dyn compatible, and an associated type bound twice.
Build every program in this guide with rustc --edition 2021. In the compiler transcripts below, the file names are the bare names shown on the command line.
The rule underneath: a trait object type starts with dyn
The Rust Reference defines a trait object as an opaque value of another type that implements a set of traits, made up of one dyn-compatible base trait plus any number of auto traits. Its list of trait object forms all start with dyn: dyn Trait, dyn Trait + Send, dyn Trait + Send + Sync, dyn Trait + 'static. And its edition note states the rule this error enforces: before the 2021 edition the dyn keyword may be omitted; in the 2021 edition and beyond, dyn is required.
Two consequences follow. First, the keyword belongs to the type, not to the value: Box::new(Square) does not change when the annotation becomes Box<dyn Shape> - only the written type gains the word. Second, a trait object is a dynamically sized type, so it is always used behind some kind of pointer - a reference, a Box, or another smart pointer, as the Reference puts it. There is no by-value form to repair toward: a bare trait as a plain value type is not a spelling variant of the trait object, it is this error.
The Rust Book shows the working form throughout its trait-object chapter: a screen holding Vec<Box<dyn Draw>>, described as "a stand-in for any type inside a Box that implements the Draw trait", created "by specifying some sort of pointer, such as a reference or a Box<T> smart pointer, then the dyn keyword, and then specifying the relevant trait". That three-part shape - pointer, dyn, trait - is the whole rule. E0782 is what the middle part missing looks like.
How to read the diagnostic
The header is "expected a type, found a trait", with the code E0782, and the caret span sits under the trait name in the written type - under Shape in Box<Shape>, under Shape in &Shape. In most positions the diagnostic carries one help: "you can add the dyn keyword if you want a trait object", with the line rewritten with dyn inserted and a +++ marker under the insertion point. That help is the complete repair for the position it appears in.
Argument position is the exception. When the bare trait sits in a function parameter, the compiler offers three repairs instead: a new generic type parameter constrained by the trait, an opaque impl type, or - listed last, as the alternative - a trait object with dyn, "accessing its methods at runtime using dynamic dispatch". The three are not interchangeable spellings. The generic and impl forms keep the concrete type known at compile time and are usually what an argument position actually wants; the dyn form accepts any implementing type at runtime, including different types in different calls. Which one is right is a design choice the error cannot make - the sections below work all three.
Each bare trait in a program is counted separately. A signature with two bare-trait parameters draws the error twice, once per parameter, each with its own set of helps, and the summary line reports "2 previous errors". Fixing one occurrence never clears another.
The first failure: a Box without dyn
This is the error index's own shape. The annotation names the trait alone inside the Box:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let s: Box<Shape> = Box::new(Square);
println!("{}", s.area());
}
error[E0782]: expected a type, found a trait
--> a1.rs:11:16
|
11 | let s: Box<Shape> = Box::new(Square);
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
11 | let s: Box<dyn Shape> = Box::new(Square);
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
The value, Box::new(Square), is fine - Square implements Shape. What the compiler rejects is the annotation: Shape in that position is a trait, not a type. The repair adds the one word:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let s: Box<dyn Shape> = Box::new(Square);
println!("{}", s.area());
}
4
The output is 4, the value Square's area returns. Nothing about the construction changed; the type now says what the value always was - a trait object, dispatched at runtime.
The second failure: a reference without dyn
A borrowed trait object follows the same rule. Here a reference is annotated with the trait alone:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let sq = Square;
let s: &Shape = &sq;
println!("{}", s.area());
}
error[E0782]: expected a type, found a trait
--> a2.rs:12:13
|
12 | let s: &Shape = &sq;
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
12 | let s: &dyn Shape = &sq;
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
The diagnostic and its single help are identical in form to the Box case. Declaring the reference as a trait object makes the same body compile:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let sq = Square;
let s: &dyn Shape = &sq;
println!("{}", s.area());
}
4
The output is 4. A reference trait object carries no ownership - it borrows the Square for the reference's lifetime - but as a type it needs dyn exactly as the boxed form does.
The third failure: an argument without dyn - and its three repairs
A function parameter written as a bare trait draws the same error with the wider help set:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn draw(s: &Shape) {
println!("{}", s.area());
}
fn main() {
draw(&Square);
}
error[E0782]: expected a type, found a trait
--> a3.rs:10:13
|
10 | fn draw(s: &Shape) {
| ^^^^^
|
help: use a new generic type parameter, constrained by `Shape`
|
10 - fn draw(s: &Shape) {
10 + fn draw<T: Shape>(s: &T) {
|
help: you can also use an opaque type, but users won't be able to specify the type parameter when calling the `fn`, having to rely exclusively on type inference
|
10 | fn draw(s: &impl Shape) {
| ++++
help: alternatively, use a trait object to accept any type that implements `Shape`, accessing its methods at runtime using dynamic dispatch
|
10 | fn draw(s: &dyn Shape) {
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
Read the three helps as three different functions. The trait-object repair keeps the signature's shape and accepts any Shape at runtime:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn draw(s: &dyn Shape) {
println!("{}", s.area());
}
fn main() {
draw(&Square);
}
4
The output is 4. The generic repair makes the parameter's concrete type a type parameter, so each call is compiled for the type actually passed:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn draw<T: Shape>(s: &T) {
println!("{}", s.area());
}
fn main() {
draw(&Square);
}
4
The output is again 4 - the observable behavior is the same here, because only one type is ever passed. The difference appears when callers pass different types, or when the function must store what it was given: a generic parameter is one concrete type per call site, while &dyn Shape is any implementing type behind the same signature. The third form, impl, works in both argument and return position with no dyn and no bare trait:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn make() -> impl Shape {
Square
}
fn draw(s: impl Shape) {
println!("{}", s.area());
}
fn main() {
draw(Square);
println!("{}", make().area());
}
4
4
The output is 4 twice: once from the argument form, once from the return form. An impl Shape return promises one concrete implementing type chosen by the function; a Box<dyn Shape> return can choose the type at runtime. When a bare trait appears in an argument, decide which of the three semantics the function wants before applying a help - the compiler lists the trait object last for a reason.
The same error in return, field, vector, and bounded positions
The remaining common positions all draw the identical diagnostic with the single dyn help, and all take the identical repair. A return type:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn make() -> Box<Shape> {
Box::new(Square)
}
fn main() {
println!("{}", make().area());
}
error[E0782]: expected a type, found a trait
--> a4.rs:10:18
|
10 | fn make() -> Box<Shape> {
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
10 | fn make() -> Box<dyn Shape> {
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
repaired by declaring the returned box a trait object:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn make() -> Box<dyn Shape> {
Box::new(Square)
}
fn main() {
println!("{}", make().area());
}
4
The output is 4. A struct field - the position a trait object most often lives in, since a field is how one is stored:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
struct Holder {
s: Box<Shape>,
}
fn main() {
let h = Holder { s: Box::new(Square) };
println!("{}", h.s.area());
}
error[E0782]: expected a type, found a trait
--> a5.rs:11:12
|
11 | s: Box<Shape>,
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
11 | s: Box<dyn Shape>,
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
repaired the same way:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
struct Holder {
s: Box<dyn Shape>,
}
fn main() {
let h = Holder { s: Box::new(Square) };
println!("{}", h.s.area());
}
4
The output is 4. A vector element type, which is where trait objects earn their keep:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let shapes: Vec<Box<Shape>> = vec![Box::new(Square)];
println!("{}", shapes[0].area());
}
error[E0782]: expected a type, found a trait
--> a6.rs:11:25
|
11 | let shapes: Vec<Box<Shape>> = vec![Box::new(Square)];
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
11 | let shapes: Vec<Box<dyn Shape>> = vec![Box::new(Square)];
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
With dyn in place, the vector can hold more than one concrete type - the use the Book's screen example is built on:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
struct Circle;
impl Shape for Circle {
fn area(&self) -> i32 {
3
}
}
fn main() {
let shapes: Vec<Box<dyn Shape>> = vec![Box::new(Square), Box::new(Circle)];
let total: i32 = shapes.iter().map(|s| s.area()).sum();
println!("{total}");
}
7
The output is 7, the sum of the two different types' areas, 4 and 3, computed through the one element type. And a trait object with an added auto-trait bound puts dyn in front of the whole bound list, not in front of each trait:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let s: Box<Shape + Send> = Box::new(Square);
println!("{}", s.area());
}
error[E0782]: expected a type, found a trait
--> a7.rs:11:16
|
11 | let s: Box<Shape + Send> = Box::new(Square);
| ^^^^^^^^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
11 | let s: Box<dyn Shape + Send> = Box::new(Square);
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let s: Box<dyn Shape + Send> = Box::new(Square);
println!("{}", s.area());
}
4
The output is 4. The span in the failing diagnostic covers the whole Shape + Send list, and the repair inserts dyn once, before it - matching the Reference's forms, where everything after dyn is the base trait plus auto traits and lifetimes.
The traps
Code copied from a pre-2021 source only warns in its own edition. The first failure's program, compiled unchanged under edition 2015, is accepted with a deprecation warning:
warning: trait objects without an explicit `dyn` are deprecated
--> a1.rs:11:16
|
11 | let s: Box<Shape> = Box::new(Square);
| ^^^^^
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
= note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
help: if this is a dyn-compatible trait, use `dyn`
|
11 | let s: Box<dyn Shape> = Box::new(Square);
| +++
warning: 1 warning emitted
It compiles, runs, and prints 4 - and the warning itself states the boundary: "this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021". Edition 2018 behaves the same way, with the same warning naming Rust 2018. So a bare trait object in older code, a book, or an answer is not a different feature - it is this error waiting for the edition bump. The repair is unchanged, and adding dyn is accepted in the older editions too, so fixed code compiles in both.
A type alias does not hide the omission. The bare trait is rejected at the alias definition itself, before any use of the alias:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
type AnyShape = Shape;
fn main() {
let s: Box<AnyShape> = Box::new(Square);
println!("{}", s.area());
}
error[E0782]: expected a type, found a trait
--> n5.rs:10:17
|
10 | type AnyShape = Shape;
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
10 | type AnyShape = dyn Shape;
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
The repair puts dyn in the alias, after which uses of the alias name need nothing more:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
type AnyShape = dyn Shape;
fn main() {
let s: Box<AnyShape> = Box::new(Square);
println!("{}", s.area());
}
4
The output is 4. A cast is a type position too. Casting a reference to a bare trait draws the error at the cast target:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let sq = Square;
let s = &sq as &Shape;
println!("{}", s.area());
}
error[E0782]: expected a type, found a trait
--> n6.rs:12:21
|
12 | let s = &sq as &Shape;
| ^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
12 | let s = &sq as &dyn Shape;
| +++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0782`.
and the repair names the trait object in the cast:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn main() {
let sq = Square;
let s = &sq as &dyn Shape;
println!("{}", s.area());
}
4
The output is 4. Two bare traits in one signature are two errors, not one - this function's parameters each draw E0782 with their own three-help set, and both need repair before the program compiles:
trait Shape {
fn area(&self) -> i32;
}
struct Square;
impl Shape for Square {
fn area(&self) -> i32 {
4
}
}
fn pair(a: &Shape, b: &Shape) -> i32 {
a.area() + b.area()
}
fn main() {
println!("{}", pair(&Square, &Square));
}
error[E0782]: expected a type, found a trait
--> n7.rs:10:13
|
10 | fn pair(a: &Shape, b: &Shape) -> i32 {
| ^^^^^
|
help: use a new generic type parameter, constrained by `Shape`
|
10 - fn pair(a: &Shape, b: &Shape) -> i32 {
10 + fn pair<T: Shape>(a: &T, b: &Shape) -> i32 {
|
help: you can also use an opaque type, but users won't be able to specify the type parameter when calling the `fn`, having to rely exclusively on type inference
|
10 | fn pair(a: &impl Shape, b: &Shape) -> i32 {
| ++++
help: alternatively, use a trait object to accept any type that implements `Shape`, accessing its methods at runtime using dynamic dispatch
|
10 | fn pair(a: &dyn Shape, b: &Shape) -> i32 {
| +++
error[E0782]: expected a type, found a trait
--> n7.rs:10:24
|
10 | fn pair(a: &Shape, b: &Shape) -> i32 {
| ^^^^^
|
help: use a new generic type parameter, constrained by `Shape`
|
10 - fn pair(a: &Shape, b: &Shape) -> i32 {
10 + fn pair<T: Shape>(a: &Shape, b: &T) -> i32 {
|
help: you can also use an opaque type, but users won't be able to specify the type parameter when calling the `fn`, having to rely exclusively on type inference
|
10 | fn pair(a: &Shape, b: &impl Shape) -> i32 {
| ++++
help: alternatively, use a trait object to accept any type that implements `Shape`, accessing its methods at runtime using dynamic dispatch
|
10 | fn pair(a: &Shape, b: &dyn Shape) -> i32 {
| +++
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0782`.
Once dyn is written, a different error can be waiting underneath. This trait has a method with no self parameter, which no vtable can hold - with dyn correctly in place, the error is E0038, "the trait Shape is not dyn compatible", not E0782:
trait Shape {
fn make() -> Self;
}
struct Square;
impl Shape for Square {
fn make() -> Self {
Square
}
}
fn main() {
let s: Box<dyn Shape> = Box::new(Square);
let _ = s;
}
error[E0038]: the trait `Shape` is not dyn compatible
--> n3.rs:11:20
|
11 | let s: Box<dyn Shape> = Box::new(Square);
| ^^^^^ `Shape` is not dyn compatible
|
note: for a trait to be dyn compatible it needs to allow building a vtable
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
--> n3.rs:2:8
|
1 | trait Shape {
| ----- this trait is not dyn compatible...
2 | fn make() -> Self;
| ^^^^ ...because associated function `make` has no `self` parameter
= help: only type `Square` implements `Shape`; consider using it directly instead.
help: consider turning `make` into a method by giving it a `&self` argument
|
2 | fn make(&self) -> Self;
| +++++
help: alternatively, consider constraining `make` so it does not apply to trait objects
|
2 | fn make() -> Self where Self: Sized;
| +++++++++++++++++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0038`.
That is a defect in the trait, not in the spelling of the type: the repair is to change the trait (give the method a self parameter, or require Self: Sized on it), or to use the concrete type or a generic parameter instead of a trait object. Treat the move from E0782 to E0038 as progress - the type is now well-formed, and the remaining question is whether the trait can be an object at all.
A trait object can also bind an associated type twice, which is a third code, E0719. This line has dyn and still fails, because Item is specified two times in the one trait object type:
fn main() {
let it: Box<dyn Iterator<Item = i32, Item = i32>> = Box::new([1, 2].into_iter());
let _ = it;
}
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
--> n4.rs:2:42
|
2 | let it: Box<dyn Iterator<Item = i32, Item = i32>> = Box::new([1, 2].into_iter());
| ---------- ^^^^^^^^^^ re-bound here
| |
| `Item` bound here first
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0719`.
The repair is to specify each associated type once. The presence of dyn is not in question in either of these last two shapes - when the code is not E0782, adding or moving dyn is not the fix.
Fixes in reach order
When E0782 appears, work the position in this order. First, if the bare trait is in a type position - a Box, a reference, a return type, a field, a vector element, an alias, or a cast - add dyn in front of the trait name, exactly as the help rewrites the line, and stop there. Second, if the position carries extra bounds, put dyn once in front of the whole list: dyn Shape + Send, never a dyn per trait. Third, if the bare trait is a function argument, choose among the three offered repairs by semantics: a generic parameter or impl when the concrete type can stay known at compile time, &dyn or Box<dyn> when the function must accept different implementing types through one signature, or store them together. Fourth, count the occurrences: repair every bare trait in the signature or file, because each one is reported separately. Last, if the error after adding dyn is E0038 or E0719, stop editing the type spelling - the trait's dyn compatibility or the associated-type bindings are the defect now.
Decision summary
A trait object type is a pointer, the keyword dyn, and a trait, in that order: Box<dyn Shape>, &dyn Shape, Vec<Box<dyn Shape>>. A trait name written alone in any type position - box, reference, argument, return, field, element, alias, or cast - is E0782, "expected a type, found a trait", on edition 2021 and later; on editions 2015 and 2018 the same code compiles with a deprecation warning that names this error as its future. The repair in a pure type position is the one word dyn, placed once, in front of the trait and its bounds. In argument position the compiler also offers a generic parameter and an impl type, which keep the concrete type at compile time and are often the better repair. And dyn is only the spelling gate: a trait that is not dyn compatible draws E0038 with dyn in place, and a doubly bound associated type draws E0719 - different defects, repaired in the trait and the bindings, not in the keyword.
Checklist
- Every trait object type starts with
dyn:Box<dyn Trait>,&dyn Trait,Vec<Box<dyn Trait>>. dynappears once per trait object type, in front of the base trait and any auto-trait or lifetime bounds.- No type alias, cast target, field, return type, or element type names a bare trait.
- Function arguments use
dynonly when runtime dispatch is wanted; a generic parameter orimpl Traitis used when the concrete type can stay known at compile time. - Every occurrence in a signature is repaired - each bare trait is a separate E0782.
- An E0038 after the
dynrepair is fixed in the trait's dyn compatibility, and an E0719 in the associated-type bindings - neither by movingdyn.
Related guides on this site
- E0120 Drop on Trait Object or Reference Fix
- E0200 Unsafe Trait Impl Needs Unsafe Fix
- E0038 Trait Not Object Safe Fix
- E0185 Method Has Self but Trait Does Not Fix
Sources
- Rust error codes index, E0782 - trait objects must include the
dynkeyword, its erroneousBox<Foo>parameter example and itsBox<dyn Foo>repair, and the note that this was allowed before edition 2021. - The Rust Reference, Trait object types - the trait object forms beginning with
dyn, that a trait object is a dynamically sized type used behind a pointer, and thatdynis required in the 2021 edition and beyond. - The Rust Programming Language, Using Trait Objects to Abstract over Shared Behavior - creating a trait object with a pointer, then the
dynkeyword, then the trait, and theVec<Box<dyn Draw>>screen that stores different concrete types under one element type.
Keep Exploring
The full Rust hub \u2014 ownership, structs and enums, async, and measured comparisons.
Every guide on the site in one list, grouped by topic.
Every browser-only checker and verifier on the site.
The C++, Python, Sysadmin, Rust, Go, and TypeScript hubs.