You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trait objects need to have all associated types specified. Please verify that all associated types of the trait were specified and the correct trait was used. Example:
But according to E0782, trait objects must include the dyn keyword:
error[[E0782]](https://doc.rust-lang.org/stable/error_codes/E0782.html): trait objects must include the `dyn` keyword
--> src/lib.rs:5:12
|
5 | type Foo = Trait<Bar=i32>; // ok!
| ^^^^^^^^^^^^^^
|
help: add `dyn` keyword before this trait
|
5 | type Foo = dyn Trait<Bar=i32>; // ok!
| +++
For more information about this error, try `rustc --explain E0782`.
error: could not compile `playground` (lib) due to previous error
I think the examples for E0191 should be updated.
The text was updated successfully, but these errors were encountered:
mu001999
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Aug 21, 2023
Location
https://doc.rust-lang.org/error_codes/E0191.html
Summary
But according to E0782, trait objects must include the
dyn
keyword:I think the examples for E0191 should be updated.
The text was updated successfully, but these errors were encountered: