2022-02-06 16:43:51 +08:00
|
|
|
$ cargo run
|
|
|
|
Compiling gui v0.1.0 (file:///projects/gui)
|
|
|
|
error[E0277]: the trait bound `String: Draw` is not satisfied
|
|
|
|
--> src/main.rs:5:26
|
|
|
|
|
|
|
|
|
5 | components: vec![Box::new(String::from("Hi"))],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Draw` is not implemented for `String`
|
|
|
|
|
|
2023-01-16 17:34:52 +08:00
|
|
|
= help: the trait `Draw` is implemented for `Button`
|
2024-06-06 21:23:21 +08:00
|
|
|
= note: required for the cast from `Box<String>` to `Box<dyn Draw>`
|
2022-02-06 16:43:51 +08:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|
2024-06-06 21:23:21 +08:00
|
|
|
error: could not compile `gui` (bin "gui") due to 1 previous error
|