suggestion to use generic parameter in case of "error[E0782]: trait objects must include the dyn
keyword"
#125139
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`.
A-trait-objects
Area: trait objects, vtable layout
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The issue was created with regard to the suggestion made in the thread https://users.rust-lang.org/t/how-can-i-avoid-dynamic-dispatch/111395
The content of Current output is the result of
rustc --crate-name foo --edition=2021 src/lib.rs
Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: