Last active
November 27, 2021 02:42
-
-
Save roneygomes/a972a7d631639f62ea313d232fdc2c62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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