mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2024-11-14 04:41:49 +08:00
14 lines
579 B
Plaintext
14 lines
579 B
Plaintext
$ 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`
|
|
|
|
|
= help: the trait `Draw` is implemented for `Button`
|
|
= note: required for the cast from `Box<String>` to `Box<dyn Draw>`
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|
|
error: could not compile `gui` (bin "gui") due to 1 previous error
|