blob: b18e1e9b4e564fb3e905bc03dd70a690eefcc0a0 [file] [log] [blame]
$ cargo run
Compiling gui v0.1.0 (file:///projects/gui)
error[E0277]: the trait bound `std::string::String: gui::Draw` is not satisfied
--> src/main.rs:5:26
|
5 | components: vec![Box::new(String::from("Hi"))],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `gui::Draw` is not implemented for `std::string::String`
|
= note: required for the cast to the object type `dyn gui::Draw`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: could not compile `gui`.
To learn more, run the command again with --verbose.