use dyn
syntax in error messages
#49277
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We have not yet stabilized
dyn Trait
(see #49218), but once we do, we should start using it in error messages. So for example this test:should print
The text was updated successfully, but these errors were encountered: