Skip to content

Instantly share code, notes, and snippets.

@roneygomes
Last active November 27, 2021 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roneygomes/a972a7d631639f62ea313d232fdc2c62 to your computer and use it in GitHub Desktop.
Save roneygomes/a972a7d631639f62ea313d232fdc2c62 to your computer and use it in GitHub Desktop.
Compiling playground v0.0.1 (/playground)
error[E0782]: trait objects must include the `dyn` keyword
--> src/main.rs:22:22
|
22 | fn write(media: &mut Write, text: &str) {
| ^^^^^
|
help: add `dyn` keyword before this trait
|
22 | fn write(media: &mut dyn Write, text: &str) {
| +++
For more information about this error, try `rustc --explain E0782`.
error: could not compile `playground` due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment